diff --git a/package.json b/package.json index 60ea63103..8521afc61 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "@commitlint/config-conventional": "^8.3.4", "@nativescript/angular":"8.21.0", "@nativescript/core":"6.5.1", + "@types/node": "14.0.4", "husky": "^4.2.3", "lerna": "^3.20.2", "nativescript-vue": "2.5.1", diff --git a/src/bottomsheet/angular/bottomsheet.service.ts b/src/bottomsheet/angular/bottomsheet.service.ts index 15e722942..9a3fe44cf 100644 --- a/src/bottomsheet/angular/bottomsheet.service.ts +++ b/src/bottomsheet/angular/bottomsheet.service.ts @@ -121,7 +121,7 @@ export class BottomSheetService { const detachedLoaderFactory = factoryResolver.resolveComponentFactory(DetachedLoader); const childInjector = this.createChildInjector(bottomSheetParams, viewContainerRef); - return viewContainerRef.createComponent(detachedLoaderFactory, -1, childInjector, null); + return viewContainerRef.createComponent(detachedLoaderFactory, 0, childInjector, null); } private async loadComponent(type: Type): Promise {