aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChirayu Krishnappa2013-08-06 21:51:48 -0700
committerChirayu Krishnappa2013-08-07 13:02:46 -0700
commitbe621934edca1efef80cb24752fad4e1e915739f (patch)
tree967a6e4d9b4a44263cc192460382a207330edc32 /src
parent6d7ee1ad3b548fa0e3ebf13e008d7024b664813f (diff)
downloadangular.js-be621934edca1efef80cb24752fad4e1e915739f.tar.bz2
fix(compile): fix directive as identifier
Diffstat (limited to 'src')
-rw-r--r--src/ng/compile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 91cf155e..ad979e33 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -1036,7 +1036,7 @@ function $CompileProvider($provide) {
controllerInstance);
if (directive.controllerAs) {
if (typeof locals.$scope !== 'object') {
- throw new Error('Can not export controller as "' + identifier + '". ' +
+ throw new Error('Can not export controller as "' + directive.controllerAs + '". ' +
'No scope object provided!');
}