- Timestamp:
- 07/31/20 10:43:09 (5 years ago)
- Branches:
- master
- Children:
- 58fa654, c73269d
- Parents:
- a55ef91
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/korona/korona.component.ts
ra55ef91 rd8fafb8 10 10 }) 11 11 export class KoronaComponent implements OnInit { 12 public korona: Pandemic ;12 public korona: Pandemic[]; 13 13 14 constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) { 15 http.get<Pandemic >(baseUrl + 'Pandemic/Get?').subscribe(result => {14 constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) { 15 http.get<Pandemic[]>(baseUrl + 'Pandemic/Get?').subscribe(result => { 16 16 this.korona = result; 17 17 console.log(this.korona);
Note:
See TracChangeset
for help on using the changeset viewer.