Skip to content

Commit e0f447a

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents d4c35b8 + e981c37 commit e0f447a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,17 @@ For example:
130130

131131
}
132132

133+
<code>bindOne</code> - used to bind the a single model to your scope:
134+
135+
bindOne(scope, model, id, auto)
136+
137+
| Arguments | Type | Description | Required | Default |
138+
| :------------ | :-------- | :------------------------------------------------------------------------ | :-------- | :-------- |
139+
| scope | Scope | The scope the model will be bound to. | Yes | |
140+
| model | String | The scope property the model will be bound to. | Yes | |
141+
| id | String | The id used to look up the model from the collection | Yes | |
142+
| auto | Boolean | By default, changes in the model will not automatically update the collection. However if set to true, changes in the client will be automatically propagated back to the collection. A deep watch is created when this is set to true, which sill degrade performance. | No | false |
143+
133144

134145
### Adding controllers, directives, filters and services
135146
It is best practice to not use globally defined controllers like they do in the AngularJS demos. Always use the exported package scope ngMeteor as your angular module to register your controller with $controllerProvider. Furthermore, to prevent errors when minifying and obfuscating the controllers, directives, filters or services, you need to use [Dependency Injection](http://docs.angularjs.org/guide/di). For example:

0 commit comments

Comments
 (0)