diff options
| author | Peter Bacon Darwin | 2014-02-16 22:02:31 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 22:02:41 +0000 |
| commit | 33e1bdc543bcb7875dcc004d487333393670ed2d (patch) | |
| tree | 7ff1f564ab486f049b7e9e5ad946a6a88bb651b6 /docs/content/error/$compile/iscp.ngdoc | |
| parent | 49f90e559ed412402ad7444bc2db2bc1c182ddf5 (diff) | |
| download | angular.js-33e1bdc543bcb7875dcc004d487333393670ed2d.tar.bz2 | |
chore(errors): rename folders to match namespaces
Diffstat (limited to 'docs/content/error/$compile/iscp.ngdoc')
| -rw-r--r-- | docs/content/error/$compile/iscp.ngdoc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/content/error/$compile/iscp.ngdoc b/docs/content/error/$compile/iscp.ngdoc new file mode 100644 index 00000000..1450dec9 --- /dev/null +++ b/docs/content/error/$compile/iscp.ngdoc @@ -0,0 +1,25 @@ +@ngdoc error +@name $compile:iscp +@fullName Invalid Isolate Scope Definition +@description + +When declaring isolate scope the scope definition object must be in specific format which starts with mode character (`@&=`) with an optional local name. + +``` +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 @&= + } + ... + } +}); +``` + +Please refer to the {@link ng.$compile#description_comprehensive-directive-api_directive-definition-object +`scope` option} of the directive definition documentation to learn more about the API. |
