How to use the @datorama/akita-ng-router-store.AkitaNgRouterStoreModule.forRoot function in @datorama/akita-ng-router-store

To help you get started, we’ve selected a few @datorama/akita-ng-router-store examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tanepiper / ngx-tinynodes / apps / ngx-tinynodes / src / app / app.module.ts View on Github external
import { AkitaNgDevtools } from '@datorama/akita-ngdevtools';
import { NgxEditorjsDemoModule } from '@tinynodes/ngx-editorjs-demo';
import { ApplicationDataModule, NgxTinynodesCoreModule } from '@tinynodes/ngx-tinynodes-core';
import { environment } from '../environments/environment';
import { AppRoutingModule } from './app-routing.module';
import { NavBarComponent } from './components/nav-bar/nav-bar.component';
import { SidebarComponent } from './components/sidebar-component/sidebar.component';
import { AppContainerComponent } from './containers/app/app.component';
import { MaterialModule } from './material.module';
import { HomePageComponent } from './pages/home/home-page.component';

const PLATFORM_IMPORTS = [BrowserModule, HttpClientModule];

const PRESENTATION_IMPORTS = [LayoutModule, MaterialModule, FlexLayoutModule, BrowserAnimationsModule];

const DEV_IMPORTS = [AkitaNgDevtools.forRoot(), AkitaNgRouterStoreModule.forRoot()];

/**
 * The main `ngx-tinynodes` module that builds the core single page application.
 * To view the application visit [the demo](https://tinynodes-ngx.firebaseapp.com/)
 */
@NgModule({
  declarations: [AppContainerComponent, NavBarComponent, SidebarComponent, HomePageComponent],
  imports: [
    ...PLATFORM_IMPORTS,
    ...PRESENTATION_IMPORTS,
    ApplicationDataModule,
    AppRoutingModule,
    NgxTinynodesCoreModule,
    NgxEditorjsDemoModule,
    environment.production ? [] : DEV_IMPORTS
  ],

@datorama/akita-ng-router-store

Bindings to connect the Angular Router with Akita store

Apache-2.0
Latest version published 2 years ago

Package Health Score

65 / 100
Full package analysis

Popular @datorama/akita-ng-router-store functions