Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 614 Bytes

File metadata and controls

20 lines (17 loc) · 614 Bytes
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { IonBackButton, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/angular/standalone';

@Component({
  selector: 'app-item-detail-page',
  templateUrl: 'item-detail-page.component.html',
  imports: [IonBackButton, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar],
})
export class ItemDetailPageComponent implements OnInit {
  id = '';

  constructor(private route: ActivatedRoute) {}

  ngOnInit() {
    this.id = this.route.snapshot.paramMap.get('id') ?? '';
  }
}