I cannot figure out why my simple AngularJS app not working as intended. \"Loading...\" is supposed to be hidden, and \"Done!\" should be shown after 1 second.
html:
I have found that one way to work around ng-show not evaluating in the way you want it to be is to use ng-class instead.
This way when $scope.loading is not equal to true the css class 'loaded' will be added to the element.
Then you just need a to use the css class to show/hide the content.
.mycontent {
display: none;
}
.loaded {
display: block;
}