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 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.
