aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/compile.js')
-rw-r--r--src/ng/compile.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 39d3338f..59754ee3 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -1035,11 +1035,6 @@ function $CompileProvider($provide) {
'$' + directive.name + 'Controller',
controllerInstance);
if (directive.controllerAs) {
- if (typeof locals.$scope !== 'object') {
- throw new Error('Can not export controller as "' + directive.controllerAs + '". ' +
- 'No scope object provided!');
- }
-
locals.$scope[directive.controllerAs] = controllerInstance;
}
});