fix(compile): fix directive as identifier

This commit is contained in:
Chirayu Krishnappa 2013-08-06 21:51:48 -07:00
parent 6d7ee1ad3b
commit be621934ed

View file

@ -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!');
}