AIA.factory('AuthenticationService',function() { return { authenticateUser:function(userName,Password) { alert('called service'); return true; } }; });