# backButtonClick click event ionic 4

**URL:** <https://forum.ionicframework.com/t/backbuttonclick-click-event-ionic-4/174502>\
**Category:** Ionic Framework\
**Created:** [September 30, 2019, 10:40am UTC](https://forum.ionicframework.com/t/backbuttonclick-click-event-ionic-4/174502 "2019-09-30T10:40:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton\_klochko](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@anton\_klochko](https://forum.ionicframework.com/u/anton_klochko)\
**Post date:** [September 30, 2019, 10:40am UTC](https://forum.ionicframework.com/t/backbuttonclick-click-event-ionic-4/174502/1 "2019-09-30T10:40:51Z")

</div>

Hi all ! Could anyone suggest please, if exist way to handle ion-back-button click like in was it Ionic 3 ?

> ```
> this.navBar.backButtonClick = (e: UIEvent) => {
> 
> };
> 
> ```

---

<div class="post-metadata">

**Author:** ![IonicGeoff](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ionicgeoff/32/128657_2.png) [@IonicGeoff](https://forum.ionicframework.com/u/IonicGeoff)\
**Post date:** [October 1, 2019, 1:37am UTC](https://forum.ionicframework.com/t/backbuttonclick-click-event-ionic-4/174502/2 "2019-10-01T01:37:09Z")

</div>

Why not use…

```auto
<ion-back-button (click)="backButtonClick($event)"></ion-back-button>

```

---

<div class="post-metadata">

**Author:** ![ke1234](https://avatars.discourse-cdn.com/v4/letter/k/c77e96/32.png) [@ke1234](https://forum.ionicframework.com/u/ke1234)\
**Post date:** [October 1, 2019, 4:45am UTC](https://forum.ionicframework.com/t/backbuttonclick-click-event-ionic-4/174502/3 "2019-10-01T04:45:52Z")

</div>

You can use Angular Routing concept for Ionic 4.  
1.Import below file,  
import { Location } from ‘@angular/common’;

2.Declare in constructor as,  
private location: Location

3.Declare below method.

goBack() {  
this.location.back();  
}

Call the method in Html file  
\<button class=“nav\_btn back\_btn floatLeft” (click)=“goBack()”\>
