diff options
| author | Misko Hevery | 2011-10-25 22:21:21 -0700 |
|---|---|---|
| committer | Misko Hevery | 2011-11-14 16:39:32 -0800 |
| commit | d12df0d360fe0dabdca3591654327834bee2803b (patch) | |
| tree | 605694ecc056869e9dd20283d8256c92655a44d4 /src/Angular.js | |
| parent | d9b58f23f6b3fe5635c3ec5259e6a0002cff78b7 (diff) | |
| download | angular.js-d12df0d360fe0dabdca3591654327834bee2803b.tar.bz2 | |
refactor(compiler) turn compiler into a service
BREAK
- remove angular.compile() since the compile method is now a service and needs to be injected
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 7 |
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(); } } |
