Skip to content

Commit

Permalink
fix(ngTableFilterConfig): missing di annotation
Browse files Browse the repository at this point in the history
This is causing the production build of ng-table to fail
  • Loading branch information
ccrowhurstram committed Dec 6, 2016
1 parent d6146c7 commit 5317463
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions demo-apps/es5/index.html
Expand Up @@ -8,13 +8,13 @@

<link rel="stylesheet" href="node_modules/bootstrap-css-only/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/ng-table/bundles/ng-table.css">
<script src="node_modules/angular/angular.min.js"></script>
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/ng-table/bundles/ng-table.js"></script>
<script src="index.js"></script>
<script src="src/my-table.component.js"></script>
</head>

<body ng-app="demo-app">
<body ng-app="demo-app" ng-strict-di>

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

Expand Down
4 changes: 3 additions & 1 deletion demo-apps/es6-systemjs/index.js
Expand Up @@ -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
});
});
2 changes: 1 addition & 1 deletion demo-apps/es6-webpack/index.tpl.html
Expand Up @@ -12,7 +12,7 @@
<% } %>
</head>

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

Expand Down
2 changes: 1 addition & 1 deletion demo-apps/ts-webpack/index.tpl.html
Expand Up @@ -12,7 +12,7 @@
<% } %>
</head>

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

<app-root></app-root>

Expand Down
2 changes: 1 addition & 1 deletion src/browser/ngTableFilterConfig.ts
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5317463

Please sign in to comment.