text: /**
   * @license
   *
   * Use of this source code is governed by an MIT-style license that can be
   * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE
   */
  import { Directive, ElementRef, Inject, Input } from '@angular/core';
  import 'jquery';
  import 'datatables.net';
  export var DataTableDirective = (function () {
      function DataTableDirective(el) {
          this.el = el;
          this.dtOptions = {};
      }
      DataTableDirective.prototype.ngOnInit = function () {
          var _this = this;
          this.dtInstance = new Promise(function (resolve, reject) {
              Promise.resolve(_this.dtOptions).then(function (dtOptions) {
                  var dt = $(_this.el.nativeElement).DataTable(dtOptions);
                  resolve(dt);
              });
          });
      };
      DataTableDirective.decorators = [
          { type: Directive, args: [{
                      selector: '[datatable]'
                  },] },
      ];
      /** @nocollapse */
      DataTableDirective.ctorParameters = function () { return [
          { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] },] },
      ]; };
      DataTableDirective.propDecorators = {
          'dtOptions': [{ type: Input },],
      };
      return DataTableDirective;
  }());
  //# sourceMappingURL=angular-datatables.directive.js.map