Hey all, There was an issue bugging me all morning and it finally got resolved. Just wanted to share it with you guys. This may seem silly to seasoned angular developers but for newbies like me, it maybe of some help.
As part of some refactoring we moved all the code to import JS files to one place. Then suddenly any data update on scope was not getting updated on the view, bound to that scope. It was weird because $scope.data was showing the updated value and the view wasn't getting updated. Then I checked on Chrome Batarang<https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk?hl=en>(super awesome tool). It was showing two root scopes. After the data fetch one scope was getting updated while the other was not. This was super weird as there was only one ng-app!! Finally it turns out, there were two <script> tags importing angular.min.js, twice. So it was kicking off two compile cycles and hence, two scope!! Hope this helps someone! -- Regards, Aadithya -- 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/groups/opt_out.
