mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(compile): fix directive as identifier
This commit is contained in:
parent
6d7ee1ad3b
commit
be621934ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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!');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue