title: error TS2739: Type '{}' is missing the following properties from type
body: <p><strong>managestation.ts</strong></p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { Station } from 'src/app/_models/station';
  import { StationService } from 'src/app/_services/station.service';
  import { AddStaModalComponent } from 'src/app/modal/station/add-sta-modal/add-sta-modal.component';
  import { EditStaModalComponent } from 'src/app/modal/station/edit-sta-modal/edit-sta-modal.component';
  import { DataSharingService } from 'src/app/_services/data-sharing.service';
  import { ActivatedRoute, Router, NavigationEnd } from '@angular/router';
  import { Observable } from 'rxjs';
  import { map } from 'rxjs/operators';
  
  @Component({
    selector: 'app-managestation',
    templateUrl: './managestation.component.html',
    styleUrls: ['./managestation.component.scss'],
  })
  export class ManagestationComponent implements OnInit {
    sta: Station;
    mySubscription: any;
  
    constructor(
      private dataSharing: DataSharingService,
      private staService: StationService,
      private activatedRoute: ActivatedRoute,
      private router: Router
    ) {}
    getStationsByOrg(id) {
        this.staService.getStationsByOrg(id)
        .then((allData) =&gt; {
          console.log(allData);
           this.sta = allData;
        });
      }
  }
  </code></pre>
  
  <p><strong>managestation.component.html</strong></p>
  
  <pre><code>&lt;ion-content class="body"&gt;
    &lt;ion-button expand="block" (click)="onAddStation()"&gt;Add Station
      &lt;ion-icon name='add' slot="end"&gt;&lt;/ion-icon&gt;
    &lt;/ion-button&gt;
    &lt;ion-list&gt;
      &lt;ion-item *ngFor="let s of sta"&gt;
        &lt;ion-label&gt;{{ s.name }}&lt;/ion-label&gt;
        &lt;ion-label&gt;{{ s.orgId }}&lt;/ion-label&gt;
        &lt;ion-icon name='create' slot="end" (click)="onEditStation(s.id)"&gt;&lt;/ion-icon&gt;
        &lt;ion-icon name='trash' slot="end" (click)="onDeleteStation(s.id)"&gt;&lt;/ion-icon&gt;
      &lt;/ion-item&gt;
    &lt;/ion-list&gt;
  &lt;/ion-content&gt;
  </code></pre>
  
  <p><strong>station.ts</strong></p>
  
  <pre><code>import { StationStatus } from './station-status.enum';
  
  export class Station {
      id: number;
      name: string;
      orgId: number;
      address?: string;
      status: StationStatus;
  
      constructor(id?: number, name?: string, orgId?: number, address?: string, status?: StationStatus) {
          this.id = id;
          this.name = name;
          this.orgId = orgId;
          this.address = address;
          this.status = status;
      }
  }
  </code></pre>
  
  <p><strong>Terminal Error</strong></p>
  
  <blockquote>
    <p>ERROR in src/app/members/managestation/managestation.component.ts(66,10): error TS2739: Type '{}' is missing the following properties from type 'Station': id, name, orgId, status</p>
  </blockquote>
  
  <p><strong>Console Output</strong></p>
  
  <pre><code> Array [ (4) […] ]
  managestation.component.ts:65:16
  
  (1) […]
  ​
  0: (4) […]
  ​​
  0: Object { id: 5, orgId: 2, name: "BitCo Gas Jos North", … }
  ​​
  1: Object { id: 6, orgId: 2, name: "BitCo Gas Awolowo Road ", … }
  ​​
  2: Object { id: 7, orgId: 2, name: "BitCo Gas Kano Central", … }
  ​​
  3: Object { id: 8, orgId: 2, name: "BitCo Gas Efik", … }
  ​​
  length: 4
  ​​
  &lt;prototype&gt;: Array []
  ​
  length: 1
  ​
  &lt;prototype&gt;: Array []
  </code></pre>
  
  <p>Am getting the result in console.log but i can't use it in my html component file</p>
  
  <p><strong>Result</strong></p>
  
  <pre><code>[
    [
      {
        "id": 9,
        "orgId": 3,
        "name": "Conap Corp Ikeja",
        "address": "23, Ogunlowo Street, Obafemi Awolowway. Ikeja, Lagos",
        "status": "active"
      },
      {
        "id": 10,
        "orgId": 3,
        "name": "Conap Corp Ota",
        "address": "23, Ogunlowo Street, Obafemi Awolowway. Ikeja, Lagos",
        "status": "active"
      },
      {
        "id": 11,
        "orgId": 3,
        "name": "Conap Corp Agbara",
        "address": "23, Ogunlowo Street, Obafemi Awolowway. Ikeja, Lagos",
        "status": "active"
      },
      {
        "id": 12,
        "orgId": 3,
        "name": "Conap Corp Agbado",
        "address": "23, Ogunlowo Street, Obafemi Awolowway. Ikeja, Lagos",
        "status": "active"
      }
    ]
  ]
  </code></pre>