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

No possibility to change messages array #4

Open
casper1149 opened this issue Jul 14, 2015 · 5 comments
Open

No possibility to change messages array #4

casper1149 opened this issue Jul 14, 2015 · 5 comments

Comments

@casper1149
Copy link

Hi,

I am using your control for 1on1 chat, however I have several users in the list and when I switch between them, I am changing the messages array.
Currently, since you are using vm.messages in the control, I am not able to change the messages array to display. So when I once select the user and set the messages array, I am not able to change it in the control.
I have cloned your repo and changed the line
'

' +

to

'

' +

Is there any reason to lock the messages array in the local scope?
May be it would be better to make it optional, or just push my changes, what do you think about it?

@khaled4vokalz
Copy link

@casper1149 will you please share the changes here in the comment... I am just stuck with this vm.messages array.... my sent messages come after i hit another event else they stuck some where ....don't know why... can you please explain?

@aitorllj93
Copy link
Contributor

@casper1149 @khaled4vokalz Any new on this? Please share code snippet or make a pull request. I don't understand what do you mean with the 'not being able to change messages array'.

@casper1149
Copy link
Author

@aitorllj93 Hey, so the issue is, when I have a multiple users and I want to switch between dialogs, it is impossible to change the vm.messages, so as a workaround I made it to use $scope.<var_name>, @khaled4vokalz is using $scope.$apply but anyway it is all workarounds

@YnievesDotNet
Copy link

I'm trying something, if I resolve this topic I send my solution.

@kittudev
Copy link

hi,
any solution on this .

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

No branches or pull requests

5 participants