mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(compile/iscp): description for compile/iscp error
This commit is contained in:
parent
3079a6f4e0
commit
52a7c351c9
1 changed files with 18 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue