javascript - ng-show disturbing div layout - angularJS -


i using ng-show="!notesopened" hide div if notesopened variable true. when hidden messes layout. there way make ng-show act in same way css property visibility:hidden? div elements around div being hidden stay in same place

ng-hide uses same property you're referring to, i.e. display: none.

if need achieve this, need use visibility: hidden;

for can use ng-class attribute.

eg: ng-class="{'vis-hidden': notesopened==true}"

  .vis-hidden{      visibility: hidden;   } 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -