launchscout / angular-schema-form Goto Github PK
View Code? Open in Web Editor NEWDirectives to build forms from json schema
Directives to build forms from json schema
Hey there,
Great stuff here but seems unfinished. How the balls do I create a radio input?
Hi,
what about supporting step, min and max for number/integer fields for example?
Any idea to where to start to add field options?
Please add a license. I have been working under the assumption that this code was licensed MIT - but in checking back find that there is no license information included.
I can't use this in my projects without a suitable license.
Not a pull request because the implementation is probably too opinionated for general use. Be that as it may, here it is: http://plnkr.co/edit/7eJO8oznXmye45Mnf8eu?p=info -- yours if you want it. From the readme there:
Features:
Each time I try to load a project using angular-schema-form on the latest 1.x version of Angular, I'm getting this error:
https://docs.angularjs.org/error/$injector/unpr?p0=eProvider%20%3C-%20e%20%3C-%20schemaFormFieldDirective
I'm using a very simple test case, injecting 'schemaForm' into the app using:
var app = angular.module('myModule', ['ui.bootstrap', 'ui.router', 'ngCookies', 'ngResource', 'schemaForm']);
And then putting the schema -form directive in my template:
<form name="agency" role="form">
<schema-form-fields fields="fields" schema="schema" model="model" required=true> </schema-form-fields>
</form>
And defining the attributes using scope variables:
$scope.fields = ['_id', '__s'];
$scope.schema = {
"title": "Agency Schema",
"type": "object",
"properties": {
"_id": {
"type": "string"
},
"__s": {
"type": "string",
"default": "00",
"minLength": 2,
"maxLength": 2
}
}
};
$scope.model = agency; //a model defined earlier
I only get the error when the controller that uses the directive loads, not when the app loads.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.