Skip to content

Commit 5317463

Browse files
committed
fix(ngTableFilterConfig): missing di annotation
This is causing the production build of ng-table to fail
1 parent d6146c7 commit 5317463

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

demo-apps/es5/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
<link rel="stylesheet" href="node_modules/bootstrap-css-only/css/bootstrap.min.css">
1010
<link rel="stylesheet" href="node_modules/ng-table/bundles/ng-table.css">
11-
<script src="node_modules/angular/angular.min.js"></script>
11+
<script src="node_modules/angular/angular.js"></script>
1212
<script src="node_modules/ng-table/bundles/ng-table.js"></script>
1313
<script src="index.js"></script>
1414
<script src="src/my-table.component.js"></script>
1515
</head>
1616

17-
<body ng-app="demo-app">
17+
<body ng-app="demo-app" ng-strict-di>
1818

1919
<h1>ng-table sample app (ES5)</h1>
2020

demo-apps/es6-systemjs/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ ng.module('demo-app', [ngTableModule.name])
66
.component('myTable', myTableComponent);
77

88
ng.element(document).ready(() => {
9-
ng.bootstrap(document, ["demo-app"]);
9+
ng.bootstrap(document, ["demo-app"], {
10+
strictDi: true
11+
});
1012
});

demo-apps/es6-webpack/index.tpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<% } %>
1313
</head>
1414

15-
<body class="site-background" ng-app="demo-app">
15+
<body class="site-background" ng-app="demo-app" ng-strict-di>
1616
<div class="logoImage"></div>
1717
<h1>ng-table sample app (ES2015+Webpack)</h1>
1818

demo-apps/ts-webpack/index.tpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<% } %>
1313
</head>
1414

15-
<body class="site-background container-fluid" ng-app="demo-app">
15+
<body class="site-background container-fluid" ng-app="demo-app" ng-strict-di>
1616

1717
<app-root></app-root>
1818

src/browser/ngTableFilterConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { IFilterConfigValues, IFilterTemplateDef } from './public-interfaces';
1414
* The angular provider used to configure the behaviour of the `NgTableFilterConfig` service.
1515
*/
1616
export class NgTableFilterConfigProvider implements IServiceProvider {
17-
static $inject: ['$injector'];
17+
static $inject = ['$injector'];
1818
$get: () => NgTableFilterConfig;
1919
private config: IFilterConfigValues;
2020
private defaultConfig: IFilterConfigValues = {

0 commit comments

Comments
 (0)