-
-
Save cliffmeyers/3d1db5373313938c3b87 to your computer and use it in GitHub Desktop.
Sample user module.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userModule = angular.module('userModule',[]); | |
userModule.factory('userService', ['$http', function($http) { | |
return new UserService($http); | |
}]); | |
userModule.factory('userModel', ['userService', function(userService) { | |
return new UserModel(userService); | |
}]); | |
userModule.controller('loginController', ['$scope', 'userModel', LoginController]); | |
userModule.controller('registrationController', ['$scope', 'userModel', RegistrationController]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment