Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- 'use strict';
- angular
- .module('login')
- .service('LoginModel', getInstance);
- LoginModel.$inject = ['$http'];
- function getInstance($http) {
- return LoginModel;
- }
- function LoginModel(data) {
- var model = {
- firstName: '',
- lastName: '',
- middleName: '',
- username: '',
- password: '',
- emailAddress: '',
- confirmEmail: '',
- country: '',
- isExistingUser: false
- };
- angular.extend(this, model, data || {});
- }
- LoginModel.prototype.getServerMapping = function () {
- return {
- FirstName: this.firstName,
- LastName: this.lastName,
- MiddleName: this.middleName,
- Username: this.username,
- Password: this.password,
- EmailAddress: this.emailAddress,
- ConfirmEmail: this.confirmEmail,
- Country: this.country,
- IsExistingUser: this.isExistingUser
- };
- };
- })();
Add Comment
Please, Sign In to add comment