Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.controller('SettingsCtrl', ['$scope', '$http', 'UserSessionService', function($scope, $http, UserSessionService)
- {
- $scope.user = UserSessionService.GetData();
- var self = this;
- self.userData = $.extend({}, $scope.user);
- self.editInfo = 0;
- self.submitPersonal = function()
- {
- UserSessionService.SaveData(self.userData).then(function()
- {
- self.editInfo = 0;
- $scope.user.userfio = "Trololo";
- })
- }
- }])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement