a8m / a8m/angular-filter

ES6/2015 importing angular-filter ?

オープン
#215 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2.9k
フォーク
319
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,

I am trying to use es2015 to import angular-filter. I have it working from other modules but I get an error on this saying

```
Failed to instantiate module {} due to:
Error: [ng:areq] Argument 'module' is not a function, got Object
```

I am using the following

```
import angularTranslate from 'angular-translate';
import angularFilter from 'angular-filter/dist/angular-filter.min';

const root = angular
.module('info.app', [
angularTranslate,
angularFilter
])
```

If I remove the angularFilter from the module then everything starts to work. Maybe I am not importing it correctly ?

Any help appreciated.

Thanks

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。