From 5317463bca7b1116616cf403a99ced74ff759ef9 Mon Sep 17 00:00:00 2001 From: Christian Crowhurst Date: Tue, 6 Dec 2016 22:05:35 +0000 Subject: [PATCH] fix(ngTableFilterConfig): missing di annotation This is causing the production build of ng-table to fail --- demo-apps/es5/index.html | 4 ++-- demo-apps/es6-systemjs/index.js | 4 +++- demo-apps/es6-webpack/index.tpl.html | 2 +- demo-apps/ts-webpack/index.tpl.html | 2 +- src/browser/ngTableFilterConfig.ts | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/demo-apps/es5/index.html b/demo-apps/es5/index.html index a7aae75e..71a2e152 100644 --- a/demo-apps/es5/index.html +++ b/demo-apps/es5/index.html @@ -8,13 +8,13 @@ - + - +

ng-table sample app (ES5)

diff --git a/demo-apps/es6-systemjs/index.js b/demo-apps/es6-systemjs/index.js index a22c7306..545b6dc6 100644 --- a/demo-apps/es6-systemjs/index.js +++ b/demo-apps/es6-systemjs/index.js @@ -6,5 +6,7 @@ ng.module('demo-app', [ngTableModule.name]) .component('myTable', myTableComponent); ng.element(document).ready(() => { - ng.bootstrap(document, ["demo-app"]); + ng.bootstrap(document, ["demo-app"], { + strictDi: true + }); }); \ No newline at end of file diff --git a/demo-apps/es6-webpack/index.tpl.html b/demo-apps/es6-webpack/index.tpl.html index 05dcd90a..55f12bab 100644 --- a/demo-apps/es6-webpack/index.tpl.html +++ b/demo-apps/es6-webpack/index.tpl.html @@ -12,7 +12,7 @@ <% } %> - +

ng-table sample app (ES2015+Webpack)

diff --git a/demo-apps/ts-webpack/index.tpl.html b/demo-apps/ts-webpack/index.tpl.html index 0b774026..6d017aed 100644 --- a/demo-apps/ts-webpack/index.tpl.html +++ b/demo-apps/ts-webpack/index.tpl.html @@ -12,7 +12,7 @@ <% } %> - + diff --git a/src/browser/ngTableFilterConfig.ts b/src/browser/ngTableFilterConfig.ts index 80da9338..5757127c 100644 --- a/src/browser/ngTableFilterConfig.ts +++ b/src/browser/ngTableFilterConfig.ts @@ -14,7 +14,7 @@ import { IFilterConfigValues, IFilterTemplateDef } from './public-interfaces'; * The angular provider used to configure the behaviour of the `NgTableFilterConfig` service. */ export class NgTableFilterConfigProvider implements IServiceProvider { - static $inject: ['$injector']; + static $inject = ['$injector']; $get: () => NgTableFilterConfig; private config: IFilterConfigValues; private defaultConfig: IFilterConfigValues = {