Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not working if follow instruction #2

Open
amigo00678 opened this issue Feb 25, 2016 · 5 comments
Open

Module not working if follow instruction #2

amigo00678 opened this issue Feb 25, 2016 · 5 comments

Comments

@amigo00678
Copy link

I followed the instruction to use module but got not working module. Maybe something else is needed?

country

@amigo00678
Copy link
Author

Fixed this by replacing template with folowing:

template: '<select><option ng-repeat="country in countries" value="country.code">{{country.name}}</option></select>',

FlorentMasson added a commit to FlorentMasson/ng-country-select that referenced this issue Mar 16, 2016
navinpeiris#2
Recent versions of angular require ng-model to be defined for ng-options to work
@hsilvest
Copy link

you forgot the "{{}}" at values

template: '<select><option ng-repeat="country in countries" value="{{country.code}}">{{country.name}}</option></select>',

@ashkarrrahman
Copy link

@hsilvest 👍

@donato-francavilla
Copy link

@amigo00678, don't modify the module, add an ng-model to the tag:

<country-select ng-model="country" cs-priorities="GB, US, CN, ES"></country-select>

@daijaafarflyt
Copy link

angular app not detecting the 'country-select' tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants