diff --git a/app/app.component.ts b/app/app.component.ts index 8d3cecd..1c02087 100644 --- a/app/app.component.ts +++ b/app/app.component.ts @@ -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; + } }