mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(Compiler): make shadow DOM stragegy support more flexible
This commit is contained in:
committed by
Misko Hevery
parent
bcf4a96a84
commit
9982520a23
+4
-1
@@ -9,6 +9,7 @@ import {NativeShadowDomStrategy} from 'angular2/src/core/compiler/shadow_dom_str
|
||||
import {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mapper';
|
||||
import {UrlResolver} from 'angular2/src/core/compiler/url_resolver';
|
||||
import {StyleUrlResolver} from 'angular2/src/core/compiler/style_url_resolver';
|
||||
import {CssProcessor} from 'angular2/src/core/compiler/css_processor';
|
||||
|
||||
import {Component} from 'angular2/src/core/annotations/annotations';
|
||||
import {Template} from 'angular2/src/core/annotations/template';
|
||||
@@ -31,7 +32,9 @@ export function main() {
|
||||
new NativeShadowDomStrategy(new StyleUrlResolver(urlResolver)),
|
||||
tplResolver,
|
||||
new ComponentUrlMapper(),
|
||||
urlResolver);
|
||||
urlResolver,
|
||||
new CssProcessor()
|
||||
);
|
||||
});
|
||||
|
||||
function createView(pv) {
|
||||
|
||||
Reference in New Issue
Block a user