I have html block and I want to control it's visibility by Angular variable
<div class={{visibilityCss}}>
Show/Hide Area
</div>
In angular I have $scope.visibilityCss = 'hide' or $scope.visibilityCss = 'show' which is 'hide' by default. I also have css for .show/.hide classes to toggle the div visibility with display:block/none.
I want this div to be hidden initially but my problem is that while the page is loading the div is visible and only after ~1 sec (when angular js is loaded) it is hidden by javascript. I would like to make it not visible from the very beginning. (something like applying hidden css for .{{visibilityCss}} class if it was a valid css class name)