pmtpenza

Untitled

Aug 15th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import { Component, OnInit } from '@angular/core';
  2. import {Api,ToastNotify} from '../providers/providers';
  3.  
  4. @Component({
  5. selector: 'app-muscles',
  6. templateUrl: './muscles.page.html',
  7. styleUrls: ['./muscles.page.scss'],
  8. })
  9. export class MusclesPage {
  10. partnery: any;
  11.  
  12. constructor(
  13. public api: Api,
  14. ) {}
  15. ionViewDidEnter(){
  16. let self = this;
  17. self.api.showMask()
  18. .then(() => {
  19. self.api.getPartnery()
  20. .then((response: any) => {
  21. self.api.hideMask()
  22. .then(() => {
  23. self.partnery = response;
  24. });
  25. });
  26. })
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment