We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3079a6f commit 52a7c35Copy full SHA for 52a7c35
docs/content/error/compile/iscp.ngdoc
@@ -2,3 +2,21 @@
2
@name $compile:iscp
3
@fullName Invalid Isolate Scope
4
@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