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

Re-link controller and scope 'messages' array objects #18

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

smirciat
Copy link

This should solve Issue #4 for those who are experiencing it. I had a very basic setup of this directive and was unable to change the messages array in the directive controller through the sendMessage function. Adding this line forces the directive to resync the controller array object, which is displayed in the chat window, with the scope array object, which is generated outside of the directive. Not sure why the two way binding seems to fail in certain installations, but this fixes it with minimal penalty.

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

Successfully merging this pull request may close these issues.

1 participant