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

two selectize elements on the same page result in the second one having no options. #4

Open
noeticpenguin opened this issue Dec 12, 2013 · 0 comments

Comments

@noeticpenguin
Copy link

I have two arrays of objects in my controller, $scope.markets and $scope.mts

both are put on the page in the same way:

                                            <select id="selectMarket" placeholder="Select Market for Flight" 
                                                ng-options='market.name for market in markets' 
                                                ng-model='selectedMarket'
                                              selectize="{ labelField: 'name', valueField: 'id' }">
                                            </select>

and

                                            <select id="selectMT" placeholder="Select Media Types for Flight" 
                                                ng-options='mt.name for mt in mts' 
                                                ng-model='selectedMediaTypes'
                                              selectize="{sortField: 'name'}"> 
                                            </select>

but it appears that ngOptions is not running for the second, as it never has any options.

Anything I need to do special to get more than one angular-selectize on the page?

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

1 participant