How to use @datorama/akita-ng-router-store - 1 common examples

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 1 year ago

Package Health Score

71 / 100
Full package analysis

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