a8m / a8m/angular-filter

ES6/2015 importing angular-filter ?

Ouverte
#215 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
2.9k
Forks
319
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.