import { Component } from '@angular/core';
interface CompanyProfile {
name: String;
thisYearSales: String;
lastYearSales: String;
thisYearGrowth: String;
lastYearGrowth: String;
}
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
})
export class AppComponent {
companyProfiles: CompanyProfile[] = [];
ngOnInit() {
this.companyProfiles = [
{
name: "Apple",
thisYearSales: "$ 2,000,000,000",
lastYearSales: "$ 1,700,000,000",
thisYearGrowth: "21%",
lastYearGrowth: "15%",
},
{
name: "Google",
thisYearSales: "$ 1,800,000,000",
lastYearSales: "$ 1,500,000,000",
thisYearGrowth: "15%",
lastYearGrowth: "13%",
},
{
name: "Meta",
thisYearSales: "$ 1,100,000,000",
lastYearSales: "$ 1,200,000,000",
thisYearGrowth: "11%",
lastYearGrowth: "12%",
},
{
name: "Tesla",
thisYearSales: "$ 1,300,000,000",
lastYearSales: "$ 900,000,000",
thisYearGrowth: "23%",
lastYearGrowth: "16%",
},
{
name: "Twitter",
thisYearSales: "$ 1,200,000,000",
lastYearSales: "$ 1,200,000,000",
thisYearGrowth: "19%",
lastYearGrowth: "18%",
}
];
}
}