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:

http://codepen.io/anon/pen/haoxk


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -