text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common"],e):e((t.angular=t.angular||{},t.angular.datatables=t.angular.datatables||{}),t.ng.core,t.ng.common)}(this,function(t,e,n){"use strict";var r=function(){function t(t){this.el=t,this.dtOptions={}}return t.prototype.ngOnInit=function(){var t=this;this.dtTrigger?this.dtTrigger.subscribe(function(){t.displayTable()}):this.displayTable()},t.prototype.ngOnDestroy=function(){this.dtTrigger&&this.dtTrigger.unsubscribe(),this.dt&&this.dt.destroy(!0)},t.prototype.displayTable=function(){var t=this;this.dtInstance=new Promise(function(e,n){Promise.resolve(t.dtOptions).then(function(n){setTimeout(function(){t.dt=$(t.el.nativeElement).DataTable(n),e(t.dt)})})})},t}();r.decorators=[{type:e.Directive,args:[{selector:"[datatable]"}]}],r.ctorParameters=function(){return[{type:e.ElementRef}]},r.propDecorators={dtOptions:[{type:e.Input}],dtTrigger:[{type:e.Input}]};var o=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}();o.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:[r],exports:[r]}]}],o.ctorParameters=function(){return[]},t.DataTableDirective=r,t.DataTablesModule=o,Object.defineProperty(t,"__esModule",{value:!0})});
  