set dashboard component to non static
This commit is contained in:
@@ -35,7 +35,7 @@ import { DashboardService } from '../dashboard.service';
|
|||||||
})
|
})
|
||||||
export class DashboardComponent implements AfterViewInit {
|
export class DashboardComponent implements AfterViewInit {
|
||||||
|
|
||||||
@ViewChild('content', { read: ViewContainerRef }) content: ViewContainerRef;
|
@ViewChild('content', { read: ViewContainerRef, static: false }) content: ViewContainerRef;
|
||||||
|
|
||||||
constructor(private compiler: Compiler, private dashboardService: DashboardService,
|
constructor(private compiler: Compiler, private dashboardService: DashboardService,
|
||||||
private injector: Injector) { }
|
private injector: Injector) { }
|
||||||
|
|||||||
Reference in New Issue
Block a user