diff options
| author | Peter Bacon Darwin | 2014-02-16 22:02:31 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 22:02:41 +0000 |
| commit | 33e1bdc543bcb7875dcc004d487333393670ed2d (patch) | |
| tree | 7ff1f564ab486f049b7e9e5ad946a6a88bb651b6 /docs/content/error/compile/nonassign.ngdoc | |
| parent | 49f90e559ed412402ad7444bc2db2bc1c182ddf5 (diff) | |
| download | angular.js-33e1bdc543bcb7875dcc004d487333393670ed2d.tar.bz2 | |
chore(errors): rename folders to match namespaces
Diffstat (limited to 'docs/content/error/compile/nonassign.ngdoc')
| -rw-r--r-- | docs/content/error/compile/nonassign.ngdoc | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/docs/content/error/compile/nonassign.ngdoc b/docs/content/error/compile/nonassign.ngdoc deleted file mode 100644 index 3a7d996b..00000000 --- a/docs/content/error/compile/nonassign.ngdoc +++ /dev/null @@ -1,41 +0,0 @@ -@ngdoc error -@name $compile:nonassign -@fullName Non-Assignable Expression -@description - -This error occurs when a directive defines an isolate scope property -(using the `=` mode in the {@link ng.$compile#description_comprehensive-directive-api_directive-definition-object -`scope` option} of a directive definition) but the directive is used with an expression that is not-assignable. - -In order for the two-way data-binding to work, it must be possible to write new values back into the path defined with the expression. - -For example, given a directive: - -``` -myModule.directive('myDirective', function factory() { - return { - ... - scope: { - 'bind': '=localValue' - } - ... - } -}); -``` - -Following are invalid uses of this directive: -``` -<!-- ERROR because `1+2=localValue` is an invalid statement --> -<my-directive bind="1+2"> - -<!-- ERROR because `myFn()=localValue` is an invalid statement --> -<my-directive bind="myFn()"> -``` - - -To resolve this error, always use path expressions with scope properties that are two-way data-bound: -``` -<my-directive bind="some.property"> -<my-directive bind="some[3]['property']"> -``` - |
