2013-07-13 00:42:27 +00:00
@ngdoc error
@name $compile:iscp
2013-08-08 18:26:56 +00:00
@fullName Invalid Isolate Scope Definition
2013-07-13 00:42:27 +00:00
@description
2013-08-01 22:09:35 +00:00
2013-08-08 18:26:56 +00:00
When declaring isolate scope the scope definition object must be in specific format which starts with mode character (`@&=`) with an optional local name.
```
2013-08-01 22:09:35 +00:00
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 @&=
}
...
}
});
2013-08-08 18:26:56 +00:00
```
2013-10-23 21:04:47 +00:00
Please refer to the {@link api/ng.$compile#description_comprehensive-directive-api_directive-definition-object
`scope` option} of the directive definition documentation to learn more about the API.