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
angular | |
.module('API', ['testData']) // Remove testData to make real http request | |
.factory('UsersAPI', function ($http, $q, $jSendHttp) { | |
return { | |
getUsers: function (companyId) { | |
return $jSendHttp.get('/api/UsersController/getUsers?companyId=' + companyId); | |
} | |
}; | |
}); |
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
// Basic App Setup | |
var App = window.App = { | |
Models: {}, | |
Views: {}, | |
Collections: {}, | |
View: {} // set below | |
}; | |
// Custom App View with global namespaced events |