File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,13 @@ Documentation
5454Basic Usage
5555-----------
5656
57- First, expose your schema, form, and model to the $scope.
58- Don't forget to load the ` schemaForm ` module.
57+ After installing, load the ` schemaForm ` module in your module definition.
58+
59+ Then, in your controller, expose your [ schema] ( http://json-schema.org/ ) ,
60+ form, and [ model] ( https://docs.angularjs.org/guide/databinding ) to the $scope.
61+ Your schema defines your data structure, the form definition
62+ draws on this definition to define the user interface, and the
63+ model binds the user input to the controller.
5964
6065``` javascript
6166angular .module (' myModule' , [' schemaForm' ])
@@ -83,7 +88,8 @@ angular.module('myModule', ['schemaForm'])
8388}
8489` ` `
8590
86- Then load them into Schema Form using the ` sfSchema` , ` sfForm` , and ` sfModel` directives.
91+ Then, in your template, load them into Schema Form using the
92+ ` sfSchema` , ` sfForm` , and ` sfModel` directives.
8793
8894` ` ` html
8995< div ng- controller= " FormController" >
You can’t perform that action at this time.
0 commit comments