I have the problem that I had some divs with ng-show, they should present some screens, that work separately well. Inside those screens there is some javascript code that depends of the height to display. Without that value all the library does not work well (similar to have a width auto and no height so the width cannot be calculated and does not display).
The problem is that those divs have not height because at that point they are hidden by ng-show=false. And for some reason until the display is not complete the height remains with 0. But the code executes before it gets shown.
I used a delay in order that everything works fine.
But is there another better way to solve this problem without a time delay?