Add the container reference to the root component
This commit is contained in:
parent
09fd52aaa3
commit
15feb7c78a
@ -1,4 +1,4 @@
|
|||||||
import { Component } from "@angular/core";
|
import { Component, ViewContainerRef } from "@angular/core";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
moduleId: module.id,
|
moduleId: module.id,
|
||||||
@ -7,4 +7,11 @@ import { Component } from "@angular/core";
|
|||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
title = "Rubber Duck Booking Tool";
|
title = "Rubber Duck Booking Tool";
|
||||||
|
|
||||||
|
private viewContainerRef: ViewContainerRef;
|
||||||
|
|
||||||
|
constructor(viewContainerRef: ViewContainerRef) {
|
||||||
|
// We need this little hack to use ng2-bootstrap.
|
||||||
|
this.viewContainerRef = viewContainerRef;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user