By using the specified pattern, I am aiming to achieve a unique toolbar or header for only certain pages. Is there a way to accomplish this without injecting the provider and keeping the page as a standalone?
My understanding of Ionic is still developing, so please let me know if my explanation is unclear. Below is the code I am currently working with:
<ion-content class="no-scroll">
<ion-header *ngIf="page.pageName != 'MyPageWithUniqueToolbar'">
<ion-toolbar color="primary" class="sub-header">
<ion-title class="sub-header-titl1">{{ page.ToolbarTitle }}</ion-title>
</ion-toolbar>
</ion-header>
<ion-content class="no-scroll">
<ion-nav class="content-body" [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>
</ion-content>
</ion-content>
I attempted to place the ngIf statement above like this, but it resulted in errors:
<ion-content *ngIf="page.pageName != 'MyPageWithUniqueToolbar'" class="no-scroll">