Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 52a7c35

Browse files
committed
docs(compile/iscp): description for compile/iscp error
1 parent 3079a6f commit 52a7c35

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/content/error/compile/iscp.ngdoc

+18
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,21 @@
22
@name $compile:iscp
33
@fullName Invalid Isolate Scope
44
@description
5+
When {@link guide/directive#directivedefinitionobject declaring isolate scope} the scope definition object must
6+
be in specific format which starts with mode character (`@&=`) with an optional local name.
7+
8+
<pre>
9+
myModule.directive('directiveName', function factory() {
10+
return {
11+
...
12+
scope: {
13+
'attrName': '@', // OK
14+
'attrName2': '=localName', // OK
15+
'attrName3': 'name', // ERROR: missing mode @&=
16+
'attrName4': ' = name', // ERROR: extra spaces
17+
'attrName5': 'name=', // ERROR: must be prefixed with @&=
18+
}
19+
...
20+
}
21+
});
22+
</pre>

0 commit comments

Comments
 (0)