cancelar-compra.component.ts
681 Bytes
import { Component, OnInit } from '@angular/core';
import { appSettings } from 'src/etc/AppSettings';
import { Location } from '@angular/common';
import { Router } from '@angular/router';
@Component({
selector: 'app-cancelar-compra',
templateUrl: './cancelar-compra.component.html',
styleUrls: ['./cancelar-compra.component.scss']
})
export class CancelarCompraComponent implements OnInit {
private apiUrl: string = appSettings.apiUrl;
constructor(
private location: Location,
private router: Router
) { }
ngOnInit() {
}
volverPreviousPage() {
this.location.back();
}
limpiarCarritoYvolver(){
this.router.navigate(['/home']);
}
}