// Font Awesome Icon
// Store Data
// Static Data
// Loader Data
isLoaded: boolean = false;
// Subscriptions
private subGetData1!: Subscription;
// Inject
private readonly reloadService = inject(ReloadService);
ngOnInit(): void {
// GET DATA FROM PARAM
this.activatedRoute.paramMap.subscribe(param => {
this.id = param.get('id');
if (this.id) {
this.getOrderById();
}
})
// Base Data
this.getData1();
}
/**
* HTTP REQUEST HANDLE
* getAllCategories()
*/
/**
* On Destroy
*/
ngOnDestroy() {
if (this.subGetData1) {
this.subGetData1.unsubscribe();
}
}