UNPKG

1.93 kBSource Map (JSON)View Raw
1{"version":3,"file":"ng-transclude.directive.js","sourceRoot":"","sources":["../../src/tabs/ng-transclude.directive.ts"],"names":[],"mappings":"OAAO,EACL,SAAS,EAAE,KAAK,EAAe,gBAAgB,EAChD,MAAM,eAAe;AAGtB;IAkBE,+BAAmB,OAAwB;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAbD,sBAAW,+CAAY;aAOvB;YACE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;QAC5B,CAAC;aATD,UAAwB,WAA4B;YAClD,IAAI,CAAC,aAAa,GAAG,WAAW,CAAC;YACjC,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;gBAChB,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC;;;OAAA;IASI,gCAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;oBACxB,QAAQ,EAAE,gBAAgB;iBAC3B,EAAG,EAAE;KACL,CAAC;IACF,kBAAkB;IACX,oCAAc,GAAmE,cAAM,OAAA;QAC9F,EAAC,IAAI,EAAE,gBAAgB,GAAG;KACzB,EAF6F,CAE7F,CAAC;IACK,oCAAc,GAA2C;QAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;KACjC,CAAC;IACF,4BAAC;AAAD,CAAC,AAjCD,IAiCC","sourcesContent":["import {\n Directive, Input, TemplateRef, ViewContainerRef\n} from '@angular/core';\n\n\nexport class NgTranscludeDirective {\n public viewRef:ViewContainerRef;\n\n protected _viewRef:ViewContainerRef;\n protected _ngTransclude:TemplateRef<any>;\n\n \n public set ngTransclude(templateRef:TemplateRef<any>) {\n this._ngTransclude = templateRef;\n if (templateRef) {\n this.viewRef.createEmbeddedView(templateRef);\n }\n }\n\n public get ngTransclude():TemplateRef<any> {\n return this._ngTransclude;\n }\n\n public constructor(viewRef:ViewContainerRef) {\n this.viewRef = viewRef;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Directive, args: [{\n selector: '[ngTransclude]'\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: ViewContainerRef, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'ngTransclude': [{ type: Input },],\n};\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
\No newline at end of file