Created
November 29, 2015 09:53
-
-
Save xavi-tristancho/26ea7e48cf8b8514ce5a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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