graycoreio/daffodil

View on GitHub
libs/navigation/driver/in-memory/src/navigation-driver.module.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { CommonModule } from '@angular/common';
import {
  NgModule,
  ModuleWithProviders,
} from '@angular/core';

import { provideDaffInMemoryBackends } from '@daffodil/driver/in-memory';
import { provideDaffNavigationDriver } from '@daffodil/navigation/driver';

import { DaffInMemoryBackendNavigationService } from './backend/navigation.service';
import { DaffInMemoryNavigationService } from './navigation.service';

@NgModule({
  imports: [
    CommonModule,
  ],
})
export class DaffNavigationInMemoryDriverModule {
  static forRoot(): ModuleWithProviders<DaffNavigationInMemoryDriverModule> {
    return {
      ngModule: DaffNavigationInMemoryDriverModule,
      providers: [
        provideDaffNavigationDriver(DaffInMemoryNavigationService),
        provideDaffInMemoryBackends(DaffInMemoryBackendNavigationService),
      ],
    };
  }
}