Compare commits

..

No commits in common. "da7e1932196c2d6ff32d9f36326a439a5b9db24c" and "1d6b30edff82d96347b516f3ed8aa08f28005ac3" have entirely different histories.

View File

@ -1,6 +1,6 @@
import { Location } from "@angular/common"; import {Component, HostListener} from '@angular/core';
import { Component, EventEmitter, HostListener, Output } from '@angular/core'; import {Location} from "@angular/common";
import { DeviceService } from '../../services/device.service'; import { DeviceService} from '../../services/device.service';
@Component({ @Component({
selector: 'fm-back-button', selector: 'fm-back-button',
@ -8,18 +8,16 @@ import { DeviceService } from '../../services/device.service';
styleUrls: ['./back-button.component.scss'] styleUrls: ['./back-button.component.scss']
}) })
export class BackButtonComponent { export class BackButtonComponent {
@Output() beforeLocationBack = new EventEmitter();
@HostListener('click') @HostListener('click')
onBackClicked() { onBackClicked() {
this.beforeLocationBack.emit();
this.location.back(); this.location.back();
} }
constructor(private location: Location,private deviceService:DeviceService) { constructor(private location: Location,private deviceService:DeviceService) { }
}
public show() { public show() {
return !this.deviceService.IsMobile(); return !this.deviceService.IsMobile();
} }
} }