Exposing get fields
It would be great to be able to deliver calculations as fields, as though they were attributes.
get subTotal() {
return this.quantity * this.price;
}get total() {
return this.items?.reduce((total, item) => total + item.subTotal, 0);
}{
provide: APP_INTERCEPTOR,
useClass: ClassSerializerInterceptor,
},Last updated