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
Post a Comment