checkout.component.ts 555 Bytes
Newer Older
Ooh-Ao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import { Component } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-checkout',
  templateUrl: './checkout.component.html',
  styleUrls: ['./checkout.component.scss'],
})
export class CheckoutComponent {
  constructor(private router: Router) { }

  routerchange() {
    this.router.navigate(['/ecommerce/order-details']);
    document.querySelector('.transition.duration.duration.fixed.inset-0.z-50.bg-gray-900.bg-opacity-50.hs-overlay-backdrop')?.remove();
    document.body.removeAttribute('style');
  }
}