-
-
Notifications
You must be signed in to change notification settings - Fork 14
Singleton
Diego van Haaster edited this page Feb 23, 2022
·
1 revision
let airportsResource = this.airportsService.entities();
let airportResource = airportsResource.entity('RDA');
airportResource.create(airport).subscribe();
airportResource.update(airport).subscribe();
airportResource.modify(airport).subscribe();
airportResource.destroy().subscribe();
airportResource.fetch().subscribe(({ entity, annots }) => {
console.log('Airport: ', entity);
console.log('Annotations: ', annots);
});
airportResource.fetchEntity().subscribe((airport) => {
console.log('Airport: ', airport);
});
airportResource.fetchModel().subscribe((model) => {
console.log('Airport: ', model);
});