Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.factory('Profile', ['$resource', function ($resource) {
- var self = $resource(mins_settings.url.profile);
- self.my = function($scope) {
- self.get().$promise.then(function(res){
- $scope.profile = res;
- $scope.profile.avatar = res.avatar ? res.avatar : mins_settings.url.img + 'avatar_blank.gif';
- });
- }
- return self;
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement