From 33e1bdc543bcb7875dcc004d487333393670ed2d Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Sun, 16 Feb 2014 22:02:31 +0000 Subject: chore(errors): rename folders to match namespaces --- docs/content/error/$parse/isecfld.ngdoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/content/error/$parse/isecfld.ngdoc (limited to 'docs/content/error/$parse/isecfld.ngdoc') diff --git a/docs/content/error/$parse/isecfld.ngdoc b/docs/content/error/$parse/isecfld.ngdoc new file mode 100644 index 00000000..f9acc19d --- /dev/null +++ b/docs/content/error/$parse/isecfld.ngdoc @@ -0,0 +1,18 @@ +@ngdoc error +@name $parse:isecfld +@fullName Referencing 'constructor' Field in Expression +@description + +Occurs when an expression attempts to access an objects constructor field. + +AngularJS bans constructor access from within expressions since constructor +access is a known way to execute arbitrary Javascript code. + +To resolve this error, avoid constructor access. As a last resort, alias +the constructor and access it through the alias instead. + +Example expression that would result in this error: + +``` +
{{user.constructor.name}}
+``` -- cgit v1.2.3