advanceChatHub.client.messageReceived is not exist, it used signalr.js, and the auto generated proxy (/SignalR/Hub), which i delete both, out of complexity, and i create my "hub" variable object which is very simple, ... i went for it, but i couldn't understand.
what "mutate" mean? in second sentence? i don't double click it accidentally, the first time like not working, second, do first action, third to second action, ... and so on, other kinda click or interupt do last action on the button. I tried put some step along side your codes, but after long time wasting my company time, i'm still issued, and receive errors :( http://plnkr.co/edit/yU4D1MNN9PN3zfZr3hB9?p=preview On Tue, Jun 16, 2015 at 3:12 PM, Sander Elias <[email protected]> wrote: > Hassan, > > > The random timer is just simulating incoming messages, you can map your > `advanceChatHub.client.messageReceived` to directly to a similar method in > the factory. > As you can see there is also a push method exposed from the factory. The > factory is the only place you should mutate your msgs array. > > To prevent double clicks on a button, you can disable the input+button on > the ng-click. If needed I can give you a sample of this too. > When you do an async post of your message, you can return a promise that > enables the input+button again. you have a very fine level of control in > angular! > > Regards > Sander > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/U4ZV2RXAEMU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
