I have two buttons (login and logout):
<button type="submit" class="btn btn-info btn-sm" ng-controller="signinController" ng-click="go()"> Sign in</button>
<button type="submit" class="btn btn-danger btn-sm" ng-controller="signinController" ng-click="goOut()">Sign out</button>
When I authenticate (using signinController), I would like to access each of these buttons and choose (as appropriate) to hide. Is it possible?
SignController
controller('signinController', function($scope, $location, $http, $window, AuthService) {
$scope.signinForm = function() {
// access and hide login button
}
$scope.go = function() {
$location.path("/signin");
};
$scope.goOut = function() {
};
});
Anyone can help me?