Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 682 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 682 Bytes

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' })],