diff options
| author | Misko Hevery | 2013-08-01 15:09:35 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2013-08-02 23:52:21 -0700 | 
| commit | 52a7c351c9ee7fe35b1ddf2ccd37b472b01519f7 (patch) | |
| tree | 41ec32638d06ca88ae1b9585dd82a7b116b63b41 /docs | |
| parent | 3079a6f4e097a777414b8c3a8a87b8e1e20b55b5 (diff) | |
| download | angular.js-52a7c351c9ee7fe35b1ddf2ccd37b472b01519f7.tar.bz2 | |
docs(compile/iscp): description for compile/iscp error
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/error/compile/iscp.ngdoc | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/docs/content/error/compile/iscp.ngdoc b/docs/content/error/compile/iscp.ngdoc index afdbd4c4..3c5c3208 100644 --- a/docs/content/error/compile/iscp.ngdoc +++ b/docs/content/error/compile/iscp.ngdoc @@ -2,3 +2,21 @@  @name $compile:iscp  @fullName Invalid Isolate Scope  @description +When {@link guide/directive#directivedefinitionobject declaring isolate scope} the scope definition object must +be in specific format which starts with mode character (`@&=`) with an optional local name. + +<pre> +myModule.directive('directiveName', function factory() { +  return { +    ... +    scope: { +      'attrName': '@', // OK +      'attrName2': '=localName', // OK +      'attrName3': 'name',    // ERROR: missing mode @&= +      'attrName4': ' = name', // ERROR: extra spaces +      'attrName5': 'name=',   // ERROR: must be prefixed with @&= +    } +    ... +  } +}); +</pre> | 
