refresh page when page routing to another page and come back to previous page(like tabs page to another page and other page to came back tabs page that time load the page using below code)

import { NavigationEnd, Router } from '@angular/router';

place the below code in ngOnInt() function inside 

this.router.events.subscribe((evt) => {

      if (!(evt instanceof NavigationEnd)) {

        return;

      }

      console.log('hai')

          });

Comments

Popular posts from this blog

push multiple data in array(select and disselect items in array)

how to active side menu in ionic3

how to add accordian to ionic project