From 52a7c351c9ee7fe35b1ddf2ccd37b472b01519f7 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 1 Aug 2013 15:09:35 -0700 Subject: docs(compile/iscp): description for compile/iscp error --- docs/content/error/compile/iscp.ngdoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs/content/error/compile/iscp.ngdoc') diff --git a/docs/content/error/compile/iscp.ngdoc b/docs/content/error/compile/iscp.ngdoc index afdbd4c4..3c5c3208 100644 --- a/docs/content/error/compile/iscp.ngdoc +++ b/docs/content/error/compile/iscp.ngdoc @@ -2,3 +2,21 @@ @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. + +
+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 @&=
+    }
+    ...
+  }
+});
+
-- cgit v1.2.3