Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
controller:
$scope.x =
y = false
showLoader:
$scope.x.y = true
hideLoader:
$scope.x.y = false
template:
<foo ng-show="x.y">loading</foo>
child controller:
showLoader()
Resource.list().$promise.then (result):
hideLoader()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.