Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit be62193

Browse files
committed
fix(compile): fix directive as identifier
1 parent 6d7ee1a commit be62193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ function $CompileProvider($provide) {
10361036
controllerInstance);
10371037
if (directive.controllerAs) {
10381038
if (typeof locals.$scope !== 'object') {
1039-
throw new Error('Can not export controller as "' + identifier + '". ' +
1039+
throw new Error('Can not export controller as "' + directive.controllerAs + '". ' +
10401040
'No scope object provided!');
10411041
}
10421042

0 commit comments

Comments
 (0)