Ignore:
Timestamp:
07/31/20 10:43:09 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
58fa654, c73269d
Parents:
a55ef91
Message:

Prototype N1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/korona/korona.component.ts

    ra55ef91 rd8fafb8  
    1010})
    1111export class KoronaComponent implements OnInit {
    12   public korona: Pandemic;
     12  public korona: Pandemic[];
    1313
    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 => {
    1616      this.korona = result;
    1717      console.log(this.korona);
Note: See TracChangeset for help on using the changeset viewer.