angular2-mdl
Version:
Angular 2 components, directives and styles based on material design lite https://getmdl.io.
25 lines • 1.11 kB
JavaScript
import { Directive, ViewContainerRef, Renderer, Input } from '@angular/core';
export var AppendViewContainerRefDirective = (function () {
function AppendViewContainerRefDirective(viewRef, renderer) {
this.viewRef = viewRef;
this.renderer = renderer;
}
AppendViewContainerRefDirective.prototype.ngAfterViewInit = function () {
this.renderer.projectNodes(this.viewRef.element.nativeElement, [this.viewContainerRefToAppend.element.nativeElement]);
};
AppendViewContainerRefDirective.decorators = [
{ type: Directive, args: [{
selector: '[append-view-container-ref]'
},] },
];
/** @nocollapse */
AppendViewContainerRefDirective.ctorParameters = function () { return [
{ type: ViewContainerRef, },
{ type: Renderer, },
]; };
AppendViewContainerRefDirective.propDecorators = {
'viewContainerRefToAppend': [{ type: Input, args: ['append-view-container-ref',] },],
};
return AppendViewContainerRefDirective;
}());
//# sourceMappingURL=append-view-container-ref-directive.js.map