In the new version of beta 14. I get my elements which were previously hidden in a view with ng-hide/show. Now show when navigating. Then will be hidden after the view is finally loaded.
It is the weirdest thing. All views I have do this. Regardless of how i use ng-hide-show.
jough is right. ng-if has a different use, it removes elements from the DOM while ng-show or ng-hide make them display: none which is useful thing very often. This cannot be masked with ng-if if used intentionally.
After switching to beta 14 I also had issues with my views that used ng-show looking really bad when first loading. I was able to switch almost all of the ng-shows over to ng-if and that fixed the issues. One gotcha - I had ng-show directives on ion-content tags, and that threw errors when trying to replace them with ng-if. I had to wrap the ion-content tags with a div and put the ng-if on that, and then it worked.
Last CSS almost did the trick for me but it doesn’t work well (div size not calculated) with card class when you make it appear and disappear multiple time with ng-hide updates.
What I made to make it working
.padding_this{
padding-bottom:300px;
}
This one just “push” down the other div out of the seen screen, adapt size to fit your needs.
I have the same problem. Did anyone try to file an issue on github, as this is really a serious bug IMHO ? (It happened just after upgrading the ionic to beta14 and angular from 1.2 to 1.3)
I have an “ion-content” with “ng-show = false”. After running a service dynamically switches to true. Inside has a select, the “change” event does not work correctly on the first try.
However if initially the view has “ng-show = true”, it works correctly.