mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-29 08:49:06 +08:00
fix(compile): fix directive as identifier
This commit is contained in:
@@ -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!');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user