graycoreio/daffodil

View on GitHub
libs/product/routing/src/module.ts

Summary

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

import {
  DaffProductRoutingConfig,
  provideDaffProductRoutingConfig,
} from './config/public_api';
import {
  DaffProductGetCollectionRequestFromRoute,
  DaffProductGetQueryParamsFromRequest,
} from './services/public_api';

@NgModule({
  providers: [
    DaffProductGetCollectionRequestFromRoute,
    DaffProductGetQueryParamsFromRequest,
  ],
})
export class DaffProductRoutingModule {
  static withConfig(config?: DaffProductRoutingConfig): ModuleWithProviders<DaffProductRoutingModule> {
    return {
      ngModule: DaffProductRoutingModule,
      providers: [
        provideDaffProductRoutingConfig(config),
      ],
    };
  }
}