34 lines
776 B
TypeScript
Executable File
34 lines
776 B
TypeScript
Executable File
import { Component, OnInit} from '@angular/core';
|
|
import { NgFor } from '@angular/common';
|
|
import { ActivatedRoute, Params } from '@angular/router';
|
|
import { CommodityComponent } from '../commodity/commodity.component';
|
|
|
|
|
|
@Component({
|
|
selector: 'dashboard',
|
|
imports: [CommodityComponent],
|
|
templateUrl: './dashboard.component.html',
|
|
styleUrls: ['./dashboard.component.css']
|
|
})
|
|
export class DashboardComponent implements OnInit {
|
|
|
|
currency: Array<string> = ["USD", "EUR", "GBP", "CNY"]
|
|
|
|
commodities: Array<string> = [ "AU" ]
|
|
|
|
symbols : Array<string> = this.commodities.concat(this.currency);
|
|
|
|
constructor(private route: ActivatedRoute) {
|
|
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
this.route.params.subscribe((params: Params) => {
|
|
|
|
});
|
|
|
|
// this.route.paramMap.
|
|
}
|
|
|
|
}
|