Adding to Facades
Keeping your state and store centralized
Property or Accessor Method
Adding a Custom Property
import {firstCustomer, CustomerFacadeBase} from 'state/customer.state';
import {Customer} from 'models';
export class CustomerFacade extends CustomerFacadeBase {
constructor(store: Store<AppState>) {
super(Customer, store);
}
get firstCustomer$(): Observable<Customer> {
return this.store.pipe(select(firstCustomer));
}
}Adding a Custom Accessor Method
Last updated