UNPKG

1.1 kBJavaScriptView Raw
1import { Directive, Input, ViewContainerRef } from '@angular/core';
2export var NgTranscludeDirective = (function () {
3 function NgTranscludeDirective(viewRef) {
4 this.viewRef = viewRef;
5 }
6 Object.defineProperty(NgTranscludeDirective.prototype, "ngTransclude", {
7 get: function () {
8 return this._ngTransclude;
9 },
10 set: function (templateRef) {
11 this._ngTransclude = templateRef;
12 if (templateRef) {
13 this.viewRef.createEmbeddedView(templateRef);
14 }
15 },
16 enumerable: true,
17 configurable: true
18 });
19 NgTranscludeDirective.decorators = [
20 { type: Directive, args: [{
21 selector: '[ngTransclude]'
22 },] },
23 ];
24 /** @nocollapse */
25 NgTranscludeDirective.ctorParameters = function () { return [
26 { type: ViewContainerRef, },
27 ]; };
28 NgTranscludeDirective.propDecorators = {
29 'ngTransclude': [{ type: Input },],
30 };
31 return NgTranscludeDirective;
32}());
33//# sourceMappingURL=ng-transclude.directive.js.map
\No newline at end of file