Seeking advice on how to handle unnecessary object properties that come with a Back-End model.
Could you please share your thoughts?
Imagine an API returning the following object:
export class TodoObject{
public name: string;
public id: number,
public assignedTo:string,
public completed: boolean,
public dueDate:Date
}
In my Angular UI, I don't need the following two fields:
public assignedTo:string,
public dueDate:Date
Can I create an object in Angular UI without these fields as shown below?
export class TodoObject{
public name: string;
public id: number
public completed: boolean
}
Is it feasible to achieve this in Angular? I am aware that GraphQL offers this capability. Interested to know if it can be done.
Is there a way to accomplish this using Ngrx or any other alternative?