hi,
How do i solve the following problem : (using the basic tutorial example with friends).
if I have 1 tab that reads the list such as :
.controller(‘ChatsCtrl’, function($scope, Friends, $http) {
$scope.friendsCounter = Friends.all().length;
})
then in another tab user adds a friend. However switching back to this tab, still the old count is displayed because the scope.friendsCounter was only populated initially and I am not sure how to reset it.