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

Any chance to preselect boxes when model is already filled? #100

Closed
lennarterikson opened this issue Oct 30, 2015 · 2 comments
Closed

Any chance to preselect boxes when model is already filled? #100

lennarterikson opened this issue Oct 30, 2015 · 2 comments
Labels

Comments

@lennarterikson
Copy link

First of all thank you for sharing your amazing checklist-model, I was searching for a solution like this for days!
My question is: Is there is any chance to select the checkboxes when the underlying model changes?
For example:
I receive a list of booked rooms from my REST-API and set it to be my selectedRooms model. I would like the checkboxes of the corresponding rows in my room table to be selected. However even if the underlying model changed, the checkboxes didn't turn into checked-mode.

Do you have any idea how to solve this? Is there a parameter I forgot to add? Or is this behaviour not intended?

@beradrian
Copy link
Collaborator

Actually this is the intended behavior. I don't know your code, but I suspect that you need to call something like scope.$apply().

@beradrian
Copy link
Collaborator

I suspect that you managed to fix it, so I will close it. If you still have problems, please feel free to re-open it.

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

No branches or pull requests

2 participants