I am trying to use $rootScope.$watchCollection in my code to update the data in controller B from controller A . but i am not getting any successful in it. as my application got stuck at this point ,so i am seeking your help so that i can came to know that where i am going wrong in code.I am trying to use $rootScope.$watchCollection