diff options
| author | Matt Rohrer | 2012-09-26 15:30:55 +0200 |
|---|---|---|
| committer | Brian Ford | 2013-01-17 19:36:14 -0500 |
| commit | d4312b731a6d795f1afef83cccd4ec1a5a11e0e4 (patch) | |
| tree | d895b06904eb7dcd2c7ee05e4d2cd88c46bc0439 /docs/content/guide/dev_guide.mvc.understanding_model.ngdoc | |
| parent | 66f051386e153f10bd2751a7cafb61404799adee (diff) | |
| download | angular.js-d4312b731a6d795f1afef83cccd4ec1a5a11e0e4.tar.bz2 | |
docs(guide): minor grammar fixes
Diffstat (limited to 'docs/content/guide/dev_guide.mvc.understanding_model.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.mvc.understanding_model.ngdoc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/content/guide/dev_guide.mvc.understanding_model.ngdoc b/docs/content/guide/dev_guide.mvc.understanding_model.ngdoc index 80e4139b..2972d3e1 100644 --- a/docs/content/guide/dev_guide.mvc.understanding_model.ngdoc +++ b/docs/content/guide/dev_guide.mvc.understanding_model.ngdoc @@ -2,16 +2,16 @@ @name Developer Guide: About MVC in Angular: Understanding the Model Component @description -Depending on the context of the discussion in angular documentation, the term _model_ can refer to +Depending on the context of the discussion in the Angular documentation, the term _model_ can refer to either a single object representing one entity (for example, a model called "phones" with its value being an array of phones) or the entire data model for the application (all entities). -In angular, a model is any data that is reachable as a property of an angular {@link +In Angular, a model is any data that is reachable as a property of an angular {@link scope Scope} object. The name of the property is the model identifier and the value is any JavaScript object (including arrays and primitives). -The only requirement for a JavaScript object to be a model in angular is that the object must be -referenced by an angular scope as a property of that scope object. This property reference can be +The only requirement for a JavaScript object to be a model in Angular is that the object must be +referenced by an Angular scope as a property of that scope object. This property reference can be created explicitly or implicitly. You can create models by explicitly creating scope properties referencing JavaScript objects in the @@ -52,11 +52,11 @@ cloud". The code above creates one child scope for each item in the "phones" array and creates a "phone" object (model) on each of these scopes with its value set to the value of "phone" in the array. -In angular, a JavaScript object stops being a model when: +In Angular, a JavaScript object stops being a model when: -* No angular scope contains a property that references the object. +* No Angular scope contains a property that references the object. -* All angular scopes that contain a property referencing the object become stale and eligible for +* All Angular scopes that contain a property referencing the object become stale and eligible for garbage collection. The following illustration shows a simple data model created implicitly from a simple template: |
