I have a grid setup in my web application. When the user checks a box it switches to a second grid already loaded on the DOM ( a printer friendly version ). There is also a third grid loaded which is populated as the user chooses rows they want to see separately.
For each of the grids I have a search bar. Each grid needs its own separate bar, so as I'm switching between them the previous bar is displayed for a second while the other is loaded (I'm using ngshow + nghide to do this). I've tried using ngcloak like this:
input type="text" ng-hide="print || checked" class="form-control ng-cloak" ng-model="gridOptions.quickFilterText">
with this css class :
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
display: none !important;
}
Also angular.js is the first thing loaded on the page, from within the header on my HTML.
From what I've read it seems ngcloak may only work from when the DOM is initially loaded? If so is there another way to hide element one immediately as element two needs to be loaded?
Thanks