Hey Sander, Thanks for the reply, this solution works for previously stated issue. As I was digging deeply I faced the real issue I am having. Issue occurs when im making ajax calls and objects function waits for the response and then makes changes in object properites. I have imitated ajax call with setTimeout, seems to me that this also doesnt work and is somehow related to that. The application I am writing has a login function inside the object methods and this function makes ajax request to the server and then assigns the values. When values are assigned and object has its needed values, Angular doesnt update the view. Here is another JSFiddle I made: http://jsfiddle.net/K4DBe/ But, when i click the button for the second call, and make the ajax call again, the view gets updated, but with the old data it before had.
Any help will be appriciated, thanks. -- 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.
