Skip to content

Singleton

Diego van Haaster edited this page Feb 23, 2022 · 1 revision
let airportsResource = this.airportsService.entities();
let airportResource = airportsResource.entity('RDA');

create

airportResource.create(airport).subscribe();

update

airportResource.update(airport).subscribe();

modify

airportResource.modify(airport).subscribe();

destroy

airportResource.destroy().subscribe();

fetch

airportResource.fetch().subscribe(({ entity, annots }) => {
  console.log('Airport: ', entity);
  console.log('Annotations: ', annots);
});

fetchEntity

airportResource.fetchEntity().subscribe((airport) => {
  console.log('Airport: ', airport);
});

fetchModel

airportResource.fetchModel().subscribe((model) => {
  console.log('Airport: ', model);
});
Clone this wiki locally