// Application initializationimport { Component, OnInit } from "@angular/core";import { HttpClient } from "@angular/common/http";@Component({ selector: "app-root", templateUrl: "./app.component.html", styleUrls: ["./app.component.scss"]})export class AppComponent implements OnInit { data: any[] = []; isLoading = true; constructor(private http: HttpClient) {} ngOnInit() { this.fetchData(); } async fetchData() { try { const response = await this.http .get<any[]>("/api/data") .toPromise(); this.data = response; this.isLoading = false; } catch (error) { console.error("Error fetching data:", error); this.isLoading = false; } } // Process application data processData() { return this.data.map(item => ({ ...item, processed: true })); }}
6%
Loading...
Preparing some stuff
Nizar Masadeh

Tso tso tso Page not found  (