Skip to content

Instantly share code, notes, and snippets.

@xavi-tristancho
Created November 29, 2015 09:53
Show Gist options
  • Select an option

  • Save xavi-tristancho/26ea7e48cf8b8514ce5a to your computer and use it in GitHub Desktop.

Select an option

Save xavi-tristancho/26ea7e48cf8b8514ce5a to your computer and use it in GitHub Desktop.
module.exports = function(ngModule) {
IndexCustomersController.prototype = Object.create(BaseController.prototype);
function IndexCustomersController(Api)
{
var vm = this;
vm.getAll = function()
{
Api.getAll('Customers')
.then(function(customers)
{
vm.customers = customers;
});
}
ngModule.controller('IndexCustomersController', IndexCustomersController);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment