Add back button
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import {Component, HostListener} from '@angular/core';
|
||||
import {Location} from "@angular/common";
|
||||
|
||||
@Component({
|
||||
selector: 'fm-back-button',
|
||||
templateUrl: './back-button.component.html',
|
||||
styleUrls: ['./back-button.component.scss']
|
||||
})
|
||||
export class BackButtonComponent {
|
||||
|
||||
@HostListener('click')
|
||||
onBackClicked() {
|
||||
this.location.back();
|
||||
}
|
||||
|
||||
constructor(private location: Location) { }
|
||||
|
||||
}
|
Reference in New Issue
Block a user