UNPKG

1.99 kBJavaScriptView Raw
1import { Component, ViewContainerRef, forwardRef, Inject } from '@angular/core';
2import { MdlDialogOutletService } from './mdl-dialog-outlet.service';
3// the componnet is used outside the app-root. injecting MdlDialogService would not work
4// this component is not exported - needs to be instanciated by
5// let x = this.appRef.bootstrap(MdlDialogOutletComponent);
6export var MdlDialogOutletComponent = (function () {
7 function MdlDialogOutletComponent(vCRef) {
8 this.vCRef = vCRef;
9 }
10 Object.defineProperty(MdlDialogOutletComponent.prototype, "viewContainerRef", {
11 get: function () {
12 return this.vCRef;
13 },
14 enumerable: true,
15 configurable: true
16 });
17 MdlDialogOutletComponent.decorators = [
18 { type: Component, args: [{
19 selector: 'dialog-outlet',
20 template: ''
21 },] },
22 ];
23 /** @nocollapse */
24 MdlDialogOutletComponent.ctorParameters = function () { return [
25 { type: ViewContainerRef, },
26 ]; };
27 return MdlDialogOutletComponent;
28}());
29// the component is used inside the app-root. this is possible because this component
30// is exported from the module
31export var MdlDialogInnerOutletComponent = (function () {
32 function MdlDialogInnerOutletComponent(vCRef, service) {
33 this.vCRef = vCRef;
34 service.setDefaultViewContainerRef(vCRef);
35 }
36 MdlDialogInnerOutletComponent.decorators = [
37 { type: Component, args: [{
38 selector: 'dialog-outlet',
39 template: ''
40 },] },
41 ];
42 /** @nocollapse */
43 MdlDialogInnerOutletComponent.ctorParameters = function () { return [
44 { type: ViewContainerRef, },
45 { type: MdlDialogOutletService, decorators: [{ type: Inject, args: [forwardRef(function () { return MdlDialogOutletService; }),] },] },
46 ]; };
47 return MdlDialogInnerOutletComponent;
48}());
49//# sourceMappingURL=mdl-dialog-outlet.component.js.map
\No newline at end of file