daily pastebin goal
30%
SHARE
TWEET

Simple Factory Model

mero909 Feb 4th, 2016 (edited) 64 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. }());
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top