GitHub

DaffNavigationFacade

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
}

Properties

tree$
Observable<T>
Default
Description

The navigation retrieved in a single navigation call.

loading$
Observable<boolean>
Default
Description

The loading state for retrieving a single navigation.

errors$
Observable<DaffStateError[]>
Default
Description

Errors associated with retrieving a single navigation.

() Methods

dispatch
void

Dispatches the given action.

Parameters
Parameteraction: Action
Description

action to dispatch.