i have a problem when i click in the button it give me an error that user is not defined i don\'t know what the problem
You are not passing anything to the function $scope.Active. Pass the User:
$scope.Active
User
$scope.Active = function(User) {...}