File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,13 @@ Documentation
54
54
Basic Usage
55
55
-----------
56
56
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.
59
64
60
65
``` javascript
61
66
angular .module (' myModule' , [' schemaForm' ])
@@ -83,7 +88,8 @@ angular.module('myModule', ['schemaForm'])
83
88
}
84
89
` ` `
85
90
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.
87
93
88
94
` ` ` html
89
95
< div ng- controller= " FormController" >
You can’t perform that action at this time.
0 commit comments