@wellwind/ngx-thanos
Version:
Use [Thanos](https://www.google.com/search?q=Thanos) snap to destory your DOM elements on Angular.
2 lines • 2.09 kB
JavaScript
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/common"),require("@angular/core"),require("@wellwind/thanos-snap"),require("rxjs")):"function"==typeof define&&define.amd?define("@wellwind/ngx-thanos",["exports","@angular/common","@angular/core","@wellwind/thanos-snap","rxjs"],n):n((e.wellwind=e.wellwind||{},e.wellwind["ngx-thanos"]={}),e.ng.common,e.ng.core,e.thanosSnap,e.rxjs)}(this,function(e,n,t,r,o){"use strict";var i=(a.prototype.snap=function(e){return o.from(r.thanosSnap(e))},a.prototype.rewind=function(e){return o.from(r.thanosRewind(e))},a.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],a.ctorParameters=function(){return[]},a.ngInjectableDef=t.defineInjectable({factory:function(){return new a},token:a,providedIn:"root"}),a);function a(){}var s=(Object.defineProperty(p.prototype,"host",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),p.prototype.ngOnChanges=function(){this.ngxThanosSnap?this.snap():this.rewind()},p.prototype.snap=function(){var e=this;this.snapStarting.emit(),this.thanosSnapService.snap(this.host).subscribe(function(){return e.snapEnded.emit()})},p.prototype.rewind=function(){var e=this;this.thanosSnapService.rewind(this.host).subscribe(function(){return e.rewinded.emit()})},p.decorators=[{type:t.Directive,args:[{selector:"[ngxThanosSnap]",exportAs:"ngxThanosSnap"}]}],p.ctorParameters=function(){return[{type:t.ElementRef},{type:i}]},p.propDecorators={ngxThanosSnap:[{type:t.Input}],snapStarting:[{type:t.Output}],snapEnded:[{type:t.Output}],rewinded:[{type:t.Output}]},p);function p(e,n){this.elementRef=e,this.thanosSnapService=n,this.ngxThanosSnap=!1,this.snapStarting=new t.EventEmitter,this.snapEnded=new t.EventEmitter,this.rewinded=new t.EventEmitter}var u=(c.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],declarations:[s],exports:[s]}]}],c);function c(){}e.NgxThanosModule=u,e.ThanosSnapDirective=s,e.ThanosSnapService=i,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=wellwind-ngx-thanos.umd.min.js.map