[Representation] Update developer guide

...to use mct-model instead of ng-model.
This commit is contained in:
Victor Woeltjen 2015-12-02 15:36:54 -08:00
parent a16cb16c31
commit 111ebe83da

View File

@ -1090,9 +1090,9 @@ contents of this object are managed entirely by the view/representation which
receives it. receives it.
* `representation`: An empty object, useful as a 'scratch pad' for * `representation`: An empty object, useful as a 'scratch pad' for
representation state. representation state.
* `ngModel`: An object passed through the ng-model attribute of the * `mctModel`: An object passed through the `mct-model` attribute of the
`mct-representation` , if any. `mct-representation` , if any.
* `parameters`: An object passed through the parameters attribute of the * `parameters`: An object passed through the `parameters` attribute of the
`mct-representation`, if any. `mct-representation`, if any.
* Any capabilities requested by the uses property of the representation * Any capabilities requested by the uses property of the representation
definition. definition.
@ -1484,10 +1484,12 @@ attributes, all of which are specified as Angular expressions:
* `key`: Machine-readable identifier for the template (of extension category * `key`: Machine-readable identifier for the template (of extension category
templates ) to be displayed. templates ) to be displayed.
* `ng-model`: _Optional_; will be passed into the template's scope as `ngModel`. * `mct-model`: _Optional_; will be passed into the template's scope as `mctModel`.
Intended usage is for two-way bound user input. Intended usage is for modification by the template.
Note that this value will _not_ be two-way bound, so bi-directional
communication should be achieved by modifying _properties_ on the object.
* `parameters`: _Optional_; will be passed into the template's scope as * `parameters`: _Optional_; will be passed into the template's scope as
parameters. Intended usage is for template-specific display parameters. `parameters`. Intended usage is for template-specific display parameters.
## Representation ## Representation
@ -1499,11 +1501,14 @@ attributes, all of which are specified as Angular expressions:
* `key`: Machine-readable identifier for the representation (of extension * `key`: Machine-readable identifier for the representation (of extension
category _representations_ or _views_ ) to be displayed. category _representations_ or _views_ ) to be displayed.
* `mct-object`: The domain object being represented. * `mct-object`: The domain object being represented. Will be available in the
* `ng-model`: Optional; will be passed into the template's scope as `ngModel`. representation's scope as `domainObject`.
Intended usage is for two-way bound user input. * `mct-model`: Optional; will be passed into the template's scope as `mctModel`.
* `parameters`: Optional; will be passed into the template's scope as Intended usage is for modification by the template.
parameters . Intended usage is for template-specific display parameters. Note that this value will _not_ be two-way bound, so bi-directional
communication should be achieved by modifying _properties_ on the object.
* `parameters`: Optional; will be passed into the representation's scope as
`parameters`. Intended usage is for representation-specific display parameters.
## Resize ## Resize