I have a variable like,
public categories: Observable<any[]>;
So after the service call, the returned data of service call will push an array of JSON data to the field which I mentioned above.
After that, I need to push an empty JSON data to that field. As it is a type of Observable, I can't just directly use .push
Is there any solution to push the empty JSON data to an array which is type of Observable?