Add back button
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit

This commit is contained in:
Willem Dantuma
2021-01-27 07:08:31 +01:00
parent a082967c69
commit ce9c72016d
5 changed files with 62 additions and 1 deletions

View File

@@ -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) { }
}