mseemann/angular2-mdl

View on GitHub
projects/core/src/lib/dialog-outlet/mdl-dialog-outlet.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { Component, ViewContainerRef } from "@angular/core";

// the componnet is used outside the app-root. injecting MdlDialogService would not work
// this component is not exported - needs to be instanciated by
//    let x = this.appRef.bootstrap(MdlDialogOutletComponent);
@Component({
  // eslint-disable-next-line
  selector: 'dialog-outlet',
  template: "",
})
export class MdlDialogOutletComponent {
  constructor(public readonly vCRef: ViewContainerRef) {}

  get viewContainerRef(): ViewContainerRef {
    return this.vCRef;
  }
}