Hi, i’m facing a problem with the architecture of my app using ionic2.
I got a rootPage which is a TabsPage with 2 tabs :
1: NextShowsTabPage
2: TVShowsTabPage
Theses 2 pages extends GenericTabPage.
@Injectable()
export abstract class GenericTabPage {
}
@Page({
templateUrl: './build/pages/tvshows/tvshows.html',
pipes: [[TranslatePipe]],
providers: [TVShowsProvider]
})
export class TVShowsTabPage extends GenericTabPage {
}
@Page({
templateUrl: './build/pages/nextshows/nextshows.html',
providers: [NextTVShowsProvider],
pipes: [[TranslatePipe]]
})
export class NextShowsTabPage extends GenericTabPage {
}
The problem is:
When “NextShowsTabPage” is loaded, the template “./build/pages/tvshows/tvshows.html” is loaded, and the second tab doesn’t work.
I’ve tried to remove the extends, and the right template is loaded …
Do you know how to fix this issue ?
Thank