Compare commits

..

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

View File

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