Harikag
1
I have Ionicv4 app, I am not understanding why my back button is not at all displaying. Could you please help me out.
<style>
.toolbar-background-md {
border-color: #427feb;
background: #427feb;
}
</style>
<ion-header>
<div class="toolbar-background-md">
<ion-navbar primary >
<img src="assets/icon/tetra_single.png" style="width: 30px;height: 15px;margin-left: 5px;" />
</ion-navbar>
</div>
</ion-header>
<ion-nav [root]="rootPage" #content swipeBackEnabled="true">
</ion-nav>
``
Do I need to add anything for my app
try this
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title> editProfile </ion-title>
</ion-toolbar>
</ion-header>
Harikag
3
But it is giving below error
Error: Template parse errors:
‘ion-back-button’ is not a known element:
- If ‘ion-back-button’ is an Angular component, then verify that it is part of this module.
- If ‘ion-back-button’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message. ("
[ERROR ->]
editProfile </io"): ng:///AppModule/TetraApp.html@10:13

are you using ionic 4 or ionic 3 ?
Harikag
5
am using ionic 4. Now Issue was solved
Calll
6
How did you solve it?
For future reference for other people.
Harikag
7
JUst add swipeBackEnabled=“true” to our app , It was already there in my above code… If you do swipe left to right it navigates to our previous page.