Add the container reference to the root component

This commit is contained in:
Gergely Polonkai 2016-10-28 09:44:01 +02:00
parent 09fd52aaa3
commit 15feb7c78a

View File

@ -1,4 +1,4 @@
import { Component } from "@angular/core";
import { Component, ViewContainerRef } from "@angular/core";
@Component({
moduleId: module.id,
@ -7,4 +7,11 @@ import { Component } from "@angular/core";
})
export class AppComponent {
title = "Rubber Duck Booking Tool";
private viewContainerRef: ViewContainerRef;
constructor(viewContainerRef: ViewContainerRef) {
// We need this little hack to use ng2-bootstrap.
this.viewContainerRef = viewContainerRef;
}
}