how to hide the buttons in angularjs -
when user login page have show logout button. have written logout in header. how disable have tried ng-show , ng-hide. button not showing after set visibility true
<button ng-show="visibility">logout</button>
in controller class, setting visibility of button once user login in app
$scope.visibility = true;
your idea correct. see if have put inside same scope, , mainly, ng-app directive in <html>
. there code of controller working?
as can see here, works:
Comments
Post a Comment