- Timestamp:
- 09/30/20 10:37:22 (4 years ago)
- Branches:
- master
- Children:
- 1454207
- Parents:
- 63d885e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/korona/korona.component.ts
r63d885e r5d02859 9 9 }) 10 10 export class KoronaComponent implements OnInit { 11 public korona: IPandemic ;11 public korona: IPandemic[]; 12 12 13 13 constructor(private dataService: DataService) { … … 17 17 ngOnInit(): void { 18 18 this.dataService.getPandemic() 19 .subscribe((res: IPandemic ) => {19 .subscribe((res: IPandemic[]) => { 20 20 this.korona = res; 21 console.log(this.korona); 21 22 }, 22 23 (err: any) => console.log(err),
Note:
See TracChangeset
for help on using the changeset viewer.