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

Pulling data to chosen #6

Closed
jtmurphree opened this issue May 19, 2015 · 2 comments
Closed

Pulling data to chosen #6

jtmurphree opened this issue May 19, 2015 · 2 comments

Comments

@jtmurphree
Copy link

I am working on a project where we are trying to use chosen for a filter drop down. We have the list set up and are sucessfully pulling data to the list box. However, when we implement chosen we can still see the data in the DOM but we get nothing in the chosen list. Is anyone familiar with this? Is this a possible bug or am I just doing something wrong?

@adityasharat
Copy link
Owner

Hey @jtmurphree
Can you share the markup of the list where you used the directive? It should be something like this:

<select chosen 
        options="properties"
        ng-model="property.name"
        ng-options="p.name as p.name for p in properties">
</select>

Make sure you add the options attribute. If you are using options and still facing an issue:

  • is the options attribute a promise?
  • can you share a sample json of the data?

@jtmurphree
Copy link
Author

actualy turns out it was rendering before the data was populated. We have solved the problem. Thank you.

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

2 participants