Skip to content

Commit c4e47e4

Browse files
committed
docs(error/iscp): include one-way bindings, mark spaces as allowed
1 parent 87ac444 commit c4e47e4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/content/error/$compile/iscp.ngdoc

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@fullName Invalid Isolate Scope Definition
44
@description
55

6-
When declaring isolate scope the scope definition object must be in specific format which starts with mode character (`@&=`) with an optional local name.
6+
When declaring isolate scope the scope definition object must be in specific format which starts with mode character (`@&=<`), after which comes an optional `?`, and it ends with an optional local name.
77

88
```
99
myModule.directive('directiveName', function factory() {
@@ -12,9 +12,11 @@ myModule.directive('directiveName', function factory() {
1212
scope: {
1313
'attrName': '@', // OK
1414
'attrName2': '=localName', // OK
15-
'attrName3': 'name', // ERROR: missing mode @&=
16-
'attrName4': ' = name', // ERROR: extra spaces
17-
'attrName5': 'name=', // ERROR: must be prefixed with @&=
15+
'attrName3': '<?localName', // OK
16+
'attrName4': ' = name', // OK
17+
'attrName5': 'name', // ERROR: missing mode @&=
18+
'attrName6': 'name=', // ERROR: must be prefixed with @&=
19+
'attrName7': '=name?', // ERROR: ? must come directly after the mode
1820
}
1921
...
2022
}

0 commit comments

Comments
 (0)