Ignore:
Timestamp:
07/27/20 17:10:07 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
ef1219a
Parents:
4b342bb
Message:

Add Route Attribute

File:
1 edited

Legend:

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

    r4b342bb rd2e69be  
    1111
    1212  constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) {
    13     http.get<HealthFacilities[]>(baseUrl + 'HealthFacilities').subscribe(result => {
     13    http.get<HealthFacilities[]>(baseUrl + 'HealthFacilities/Get?').subscribe(result => {
    1414      this.facilities = result;
     15      console.log(this.facilities);
    1516    }, error => console.error(error));
    16   } 
     17  }
    1718}
     19/*interface healthFacilities {
     20  Name: string;
     21  Municipality: string;
     22  Address: string;
     23  Type: string;
     24  Email: string;
     25  Phone: string;
     26}*/
     27
Note: See TracChangeset for help on using the changeset viewer.