I've got a controller in Angular JS.
In this controller i've got a $scope.users property : it's an array of users.
This controller is used by two views: /users and /users/:id.
I've seen that the $scope.users models is init each time i come to an user view.
My question is simple how to do to get the $scope.users applied only to the /users view and not to the /users/:id view ?
I've done this with the $location.path method, but i don't know if it's the right way.
PS : I've got a factory to retrieve the users so i know it's a singleton ...
Thx for your answers.