From d12df0d360fe0dabdca3591654327834bee2803b Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 25 Oct 2011 22:21:21 -0700 Subject: refactor(compiler) turn compiler into a service BREAK - remove angular.compile() since the compile method is now a service and needs to be injected --- src/Angular.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/Angular.js') 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(); } } -- cgit v1.2.3