aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 0ef1af8e..9b0c4e23 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -854,11 +854,6 @@ function toBoolean(value) {
}
-/** @name angular.compile */
-function compile(element) {
- return new Compiler(angularTextMarkup, angularAttrMarkup, angularDirective, angularWidget)
- .compile(element);
-}
/////////////////////////////////////////////////
/**
@@ -956,7 +951,7 @@ function angularInit(config, document){
injector = createInjector(),
scope = injector('$rootScope');
- compile(element)(scope);
+ injector('$compile')(element)(scope);
scope.$apply();
}
}