Skip to content

How should you Handle Tab Based Applications in Ionic? #127

Discussion options

You must be logged in to vote
  • There can't be multiple tours running at the same time since TourService is global to the whole app. Normally if the user (not the UI tour itself) navigates to a different page (app route changes), the tour ends automatically.
  • If you want to have multiple step templates for different tabs of the application, you can just use *ngIf to switch between the templates:
<tour-step-template>
    <ng-template let-step="step">
        <ng-container *ngIf="activeTab === 'tab1'; else tab2Template">
            <app-tab1-template [step]="step" />
        </ng-container>

        <ng-template #tab2Template>
          <app-tab2-template [step]="step" />
        </ng-template>
    </ng-template>
</tour…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hakimio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants