Skip to content

Commit 99122ee

Browse files
committed
Merge pull request #583 from ErichBSchulz/patch-1
introduce main ideas in opening of doco
2 parents 53ad000 + 30975ea commit 99122ee

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/index.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ Documentation
5454
Basic 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
6166
angular.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">

0 commit comments

Comments
 (0)