/akita-ng-router-store

Bindings to connect Angular router to Akita store

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Bindings to connect Angular router to Akita store.

To get started, install the @datorama/akita-ng-router-store package and add to the app module the Akita’s devtools modules:

import { AkitaNgDevtools } from '@datorama/akita-ngdevtools';
import { AkitaNgRouterStoreModule } from '@datorama/akita-ng-router-store';
​
​@NgModule({
imports: [environment.production ? [] :
  [ AkitaNgDevtools.forRoot(), AkitaNgRouterStoreModule ]
})
export class AppModule {
}

Lazy Load Modules

To get the lazy modules routing params, please add the following option to your module:

  imports: [RouterModule.forRoot(routes, { paramsInheritanceStrategy: 'always' })],