rsertelon / iso-3166-country-codes-angular

Javascript lib for ISO 3166 Country codes
http://rsertelon.github.io/iso-3166-country-codes-angular
The Unlicense
34 stars 31 forks source link

filter seems not to be working (angular 1.2.0-rc.3) #2

Closed ghost closed 10 years ago

ghost commented 10 years ago

Error: [$injector:unpr] Unknown provider: isoCountryFilterProvider <- isoCountryFilter http://errors.angularjs.org/1.2.0-rc.3/$injector/unpr?p0=isoCountryFilterProvider%20%3C-%20isoCountryFilter

rsertelon commented 10 years ago

Hi,

I haven't tested my library with the latest AngularJS.

I will try it with AngularJS 1.2.0, as it is now stable.

I'll keep you posted.

Thanks for reporting!

EDIT: will do with 1.2.1 as 1.2.0 has a significant bug apparently ;)

rsertelon commented 10 years ago

Hi @jtellog

It seems that nothing's changed in 1.2.0 concerning filters (nothing in the migration guide)

Could you post a snippet of code showing how you use the filter?

Thanks,

rsertelon commented 10 years ago

@jtellog Can you provide more information please?

The error message tells me that the module has not been injected, and it seems that this is only a matter of declaring it in the dependencies of your app, am I right?

ghost commented 10 years ago

Sorry, I will check it again.

rsertelon commented 10 years ago

@jtellog Any news?

medowlock commented 10 years ago

Had same problem with AngularJS 1.2.13.

Fixed it by adding: var myapp= angular.module('myapp', ['iso-3166-country-codes'])

rsertelon commented 10 years ago

@medowlock This works better when AngularJS is able to load the module indeed ;)

Closing the issue ! :)