import { DaffNavigationFacade } from '@daffodil/navigation/state'
@Injectable()
class DaffNavigationFacade<<T extends DaffGenericNavigationTree<T>>> implements DaffNavigationFacadeInterface<T> {
tree$: Observable<T>
loading$: Observable<boolean>
errors$: Observable<DaffStateError[]>
dispatch(action: Action<string>): void
}
Observable<T>
Default | – |
---|---|
Description | The navigation retrieved in a single navigation call. |
Observable<boolean>
Default | – |
---|---|
Description | The loading state for retrieving a single navigation. |
Observable<DaffStateError[]>
Default | – |
---|---|
Description | Errors associated with retrieving a single navigation. |
void
Dispatches the given action.
Parameter | action: Action |
---|---|
Description | action to dispatch. |