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

Commit

Permalink
fix(compile): fix directive as identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
chirayuk committed Aug 7, 2013
1 parent 6d7ee1a commit be62193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
}

Expand Down

1 comment on commit be62193

@petebacondarwin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be throwing a minErr?

Please sign in to comment.