Angular JSON Schema Form Demo

Simple usage

This is a simple usage of mohsen1.schema-form

<form schema-form="{type: 'string', title: 'firstName' }" ng-model="simpleString">
  <button class="btn btn-primary" type="submit">Submit</button>
</form>
<input ng-model="simpleString">
      

Results


Two Way Data Binding

This demo demonstrate two way data binding and live ng-model and schema-form Attributes. Change model and the schema accordingly and click commit to see the changes.

Schema
Model
Form

Advanced Form

In this example, schema is loaded via an XHR call.