UNPKG

@datorama/akita-ng-router-store

Version:

Bindings to connect the Angular Router with Akita store

25 lines (24 loc) 955 B
import { NavigationCancel, NavigationError, Router } from '@angular/router'; import { RouterStore } from './router.store'; import { RouterQuery } from './router.query'; import * as i0 from "@angular/core"; export declare class RouterService { private routerStore; private routerQuery; private router; private dispatchTriggeredByRouter; private navigationTriggeredByDispatch; private lastRouterState; constructor(routerStore: RouterStore, routerQuery: RouterQuery, router: Router); dispatchRouterCancel(event: NavigationCancel): void; dispatchRouterError(event: NavigationError): void; dispatchRouterSuccess(): void; init(): void; private update; private setUpStoreListener; private navigateIfNeeded; private setUpStateRollbackEvents; private serializeRoute; static ɵfac: i0.ɵɵFactoryDeclaration<RouterService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<RouterService>; }