Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PcPearsonMainController {
- constructor(PearsonService, $state) {
- 'ngInject';
- this.name = 'pcPearsonMain';
- this.PearsonService = PearsonService;
- this.params = $state.params;
- this.buscarIntegracao();
- }
- buscarIntegracao = () => {
- const params = {
- id_matricula: params.id_matricula
- };
- this.PearsonService.getResource().getAll(params, (response) => {
- this.loading = false;
- this.integracao = response;
- }, (error) => {
- this.loading = false;
- this.toaster.notify(error.data);
- });
- }
- }
- export default PcPearsonMainController;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement