Skip to content

Commit 75964d1

Browse files
committed
Merge PR #583 into webpack branch
1 parent 76ea42d commit 75964d1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/index.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ 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.
59-
57+
After installing, load the `schemaForm` module in your module definition.
58+
Then, in your controller, expose your [schema](http://json-schema.org/), form, and [model](https://docs.angularjs.org/guide/databinding) to the $scope.
59+
Your schema defines your data structure, the form definition draws on this definition to define the user interface, and the model binds the user input to the controller.
6060
```javascript
6161
angular.module('myModule', ['schemaForm'])
6262
.controller('FormController', function($scope) {
@@ -82,9 +82,8 @@ angular.module('myModule', ['schemaForm'])
8282
$scope.model = {};
8383
}
8484
```
85-
86-
Then load them into Schema Form using the `sfSchema`, `sfForm`, and `sfModel` directives.
87-
85+
Then, in your template, load them into Schema Form using the
86+
`sfSchema`, `sfForm`, and `sfModel` directives.
8887
```html
8988
<div ng-controller="FormController">
9089
<form sf-schema="schema" sf-form="form" sf-model="model"></form>

0 commit comments

Comments
 (0)