@isoden/ngx-unless
Version:
An Angular module to add unless syntax to template.
3 lines (2 loc) • 1.01 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define(["exports","@angular/core"],t):t(e["ngx-unless"]={},e.ng.core)}(this,function(e,t){"use strict";var n=function(){function e(e,t){this.viewContainerRef=e,this.templateRef=t}return Object.defineProperty(e.prototype,"ngxUnless",{set:function(e){Boolean(e)?this.viewContainerRef.clear():this.viewContainerRef.createEmbeddedView(this.templateRef)},enumerable:!0,configurable:!0}),e}();n.decorators=[{type:t.Directive,args:[{selector:"[ngxUnless]"}]}],n.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef}]},n.propDecorators={ngxUnless:[{type:t.Input}]};var r=function(){return function(){}}();r.decorators=[{type:t.NgModule,args:[{declarations:[n],exports:[n]}]}],r.ctorParameters=function(){return[]},e.UnlessModule=r,e.UnlessDirective=n,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-unless.umd.min.js.map