My APP works with tabs, inside these tabs I have buttons that open other pages using push
, when I click on tab 2, and click on a button, it opens the normal page, then I click on tab 1, and then click again in tab 2, but instead of showing the start page of tab 2, it already comes open with the page that I had clicked before ... How do I make it every time it clicks on a tab, it shows exactly the Page of that tab, and do not bring the page I had visited open? I tried using this.tabRef.select (0);
Inside the tab.ts but it double-clicks on the first click of each tab, which causes a blink on the screen leaving it blank for a few seconds by calling it twice ... I tried this.navCtrl.setRoot (HomePage ) ;
, but it takes the tabs off the screen, as it takes HomePage as the home page.
相关问题
- Angular RxJS mergeMap types
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- Plugin with id 'com.google.gms.google-services
- How to update placeholder text in ng2-smart-table?
- How to instantiate Http service in main.ts manuall
相关文章
- angular脚手架在ie9+下兼容问题
- angular 前端项目 build 报错 "Cannot find module 'le
- Angular Material Stepper causes mat-formfield to v
- After upgrade to Angular 9 cannot find variable in
- is there any difference between import { Observabl
- Suppress “Circular dependency detected” suppress w
- How can you get current positional information abo
- Angular material table not showing data
Use this code in child pages of tab: