Hi Pablo, Harila...,

You idea to move the list to a service is good advice! However, you don't 
need to broadcast events, just to monitor the length of the list (to be 
honest, I didn't really read everything in this thread!)

app.service('mySpecialList', function(){
  return {list: []}
})

app.controller('ctrl1', function($scope, mySpecialList){
    $scope.myList = mySpecialList

})

app.controller('ctrl2', function($scope, mySpecialList){
    $scope.myList = mySpecialList
})

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to