fix: Static DI init
This commit is contained in:
parent
8d2720775c
commit
009e11a6be
|
@ -274,8 +274,9 @@ export function setupReflectorForAngular() {
|
|||
});
|
||||
|
||||
reflector.registerType(StyleInliner, {
|
||||
"factory": () => new StyleInliner(),
|
||||
"parameters": [],
|
||||
"factory": (xhr, styleUrlResolver, urlResolver) =>
|
||||
new StyleInliner(xhr, styleUrlResolver, urlResolver),
|
||||
"parameters": [[XHR], [StyleUrlResolver], [UrlResolver]],
|
||||
"annotations": []
|
||||
});
|
||||
}
|
||||
|
|
|
@ -162,8 +162,9 @@ function setupReflector() {
|
|||
});
|
||||
|
||||
reflector.registerType(StyleInliner, {
|
||||
"factory": () => new StyleInliner(),
|
||||
"parameters": [],
|
||||
"factory": (xhr, styleUrlResolver, urlResolver) =>
|
||||
new StyleInliner(xhr, styleUrlResolver, urlResolver),
|
||||
"parameters": [[XHR], [StyleUrlResolver], [UrlResolver]],
|
||||
"annotations": []
|
||||
});
|
||||
|
||||
|
|
|
@ -143,8 +143,9 @@ function setup() {
|
|||
});
|
||||
|
||||
reflector.registerType(StyleInliner, {
|
||||
"factory": () => new StyleInliner(),
|
||||
"parameters": [],
|
||||
"factory": (xhr, styleUrlResolver, urlResolver) =>
|
||||
new StyleInliner(xhr, styleUrlResolver, urlResolver),
|
||||
"parameters": [[XHR], [StyleUrlResolver], [UrlResolver]],
|
||||
"annotations": []
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue