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| Default | – |
|---|---|
| Description | The navigation retrieved in a single navigation call. |
Observable| Default | – |
|---|---|
| Description | The loading state for retrieving a single navigation. |
Observable<DaffStateError[]>| Default | – |
|---|---|
| Description | Errors associated with retrieving a single navigation. |
voidDispatches the given action.
| Parameter | action: Action |
|---|---|
| Description | action to dispatch. |