Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $rootScope.loading++;
- profileInfo.$watch(function(newVal, oldVal) {
- profileInfo.$loaded()
- .then(function(res) {
- $scope.user = res.profile;
- $scope.profileLoaded = true;
- })
- .catch(function(err) {
- setStatus(false, 'Unable to fetch profile', true);
- })
- .finally(function() {
- $rootScope.loading--;
- });
- });
- profileInfo.$watch(function(newVal, oldVal) {
- $rootScope.loading++;
- profileInfo.$loaded()
- .then(function(res) {
- $scope.user = res.profile;
- $scope.profileLoaded = true;
- })
- .catch(function(err) {
- setStatus(false, 'Unable to fetch profile', true);
- })
- .finally(function() {
- $rootScope.loading--;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement