diff options
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: |
