Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class PcPearsonMainController {
  2.   constructor(PearsonService, $state) {
  3.     'ngInject';
  4.     this.name = 'pcPearsonMain';
  5.  
  6.     this.PearsonService = PearsonService;
  7.     this.params = $state.params;
  8.     this.buscarIntegracao();
  9.   }
  10.   buscarIntegracao = () => {
  11.     const params = {
  12.       id_matricula: params.id_matricula
  13.     };
  14.  
  15.     this.PearsonService.getResource().getAll(params, (response) => {
  16.       this.loading = false;
  17.       this.integracao = response;
  18.     }, (error) => {
  19.       this.loading = false;
  20.       this.toaster.notify(error.data);
  21.     });
  22.   }
  23. }
  24.  
  25. export default PcPearsonMainController;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement