Advertisement
randomCodes

não funciona

Oct 12th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Service
  2. vm.list = () => {
  3.     const req = { url: url, method: 'GET' };
  4.         return $http(req)
  5. };
  6.  
  7. //Controller
  8. vm.customers = null;
  9. CustomerSvc.list()
  10.     .success( (data) => { return vm.customers = data})
  11.     .error((err) => { return console.error('Erro ao listar clientes') })
  12.  
  13. //View
  14. <div  ng-repeat="c in ctrl.customers">
  15. <!-- Coisas aqui -->
  16. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement