aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/compile/iscp.ngdoc
blob: 3c5c3208a6a127ab0c298f7b56eb04fc62a17aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@ngdoc error
@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>