a8m / a8m/angular-filter

ES6/2015 importing angular-filter ?

未關閉
#215 1 則留言 0 個 reaction 已指派 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

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Check the angular-filter module's export format in the dist file to see if it's a proper AngularJS module. Look at how other modules like angular-translate are imported and compare. Test by importing the non-minified version or checking the source entry point. Verify the module registration in the AngularJS app.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angularjs, javascript
領域
frontend
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。