Set a default field on a component in ngrx
Imagine we have a flash message component and it has 2 required fields, severity
and message; 2 optional fields, id and dismissable.
In flash-message.reducer.ts, flash message interface defined as:
export interface FlashMessage {
id: string;
severity: 'success' | 'info' | 'warning' | 'danger';
message:…