1 | import { Directive, Input, ViewContainerRef } from '@angular/core';
|
2 | export 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 |
|
25 | NgTranscludeDirective.ctorParameters = function () { return [
|
26 | { type: ViewContainerRef, },
|
27 | ]; };
|
28 | NgTranscludeDirective.propDecorators = {
|
29 | 'ngTransclude': [{ type: Input },],
|
30 | };
|
31 | return NgTranscludeDirective;
|
32 | }());
|
33 |
|
\ | No newline at end of file |