dependencies dependencies cluster_UrlTestingModule cluster_UrlTestingModule_declarations cluster_UrlTestingModule_exports MockUrlPipe MockUrlPipe UrlTestingModule UrlTestingModule MockUrlPipe->UrlTestingModule MockUrlPipe MockUrlPipe UrlTestingModule->MockUrlPipe

File

projects/core/src/routing/configurable-routes/url-translation/testing/url-testing.module.ts

Declarations

Exports

Methods

Static allowlistParams
allowlistParams(allowlistedParams: string[])
Parameters :
Name Type Optional
allowlistedParams string[] No
import { CommonModule } from '@angular/common';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { MockUrlPipe, URL_TESTING_ALLOWLISTED_PARAMS } from './mock-url.pipe';

@NgModule({
  imports: [CommonModule],
  declarations: [MockUrlPipe],
  exports: [MockUrlPipe],
})
export class UrlTestingModule {
  static allowlistParams(
    allowlistedParams: string[]
  ): ModuleWithProviders<UrlTestingModule> {
    return {
      ngModule: UrlTestingModule,
      providers: [
        {
          provide: URL_TESTING_ALLOWLISTED_PARAMS,
          useValue: allowlistedParams,
        },
      ],
    };
  }
}

result-matching ""

    No results matching ""