chore(): update dependencies

This commit is contained in:
Manu Mtz.-Almeida
2018-08-01 18:32:20 +02:00
parent 76b780f5d8
commit 4fcab89651
14 changed files with 64 additions and 60 deletions

View File

@ -68,7 +68,10 @@ export function attachView(
container: any, component: any, params: any, cssClasses: string[] | undefined
) {
const factory = resolver.resolveComponentFactory(component);
const childInjector = Injector.create(getProviders(params), injector);
const childInjector = Injector.create({
providers: getProviders(params),
parent: injector
});
const componentRef = (location)
? location.createComponent(factory, location.length, childInjector)
: factory.create(childInjector);