Advertisement
mero909

Simple Factory Model

Feb 4th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.     'use strict';  
  3.  
  4.     angular
  5.         .module('login')
  6.         .factory('LoginModel', LoginModel);
  7.  
  8.     function LoginModel() {
  9.         var model = {
  10.             firstName: '',
  11.             lastName: '',
  12.             middleName: '',
  13.             username: '',
  14.             password: '',
  15.             emailAddress: '',
  16.             confirmEmail: '',
  17.             country: '',
  18.             isExistingUser: false
  19.         };
  20.  
  21.         return model;
  22.     }
  23. }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement