<div class="resource-view-element"> <div class="cor-loader" ng-show="getState(resources) == 'loading'"></div> <div class="resource-error alert alert-info" ng-show="getState(resources) == 'error'"> {{ errorMessage }} </div> <div class="resource-content" ng-class="getState(resources) == 'ready' ? 'visible' : 'hidden'"> <span ng-transclude></span> </div> </div>