Merge loaded and errored into one loadState variable (with 3 possible values)
Use ng-switch instead of ng-show (for load states)