File

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

Metadata

Name cxUrl

Methods

transform
transform(commands: UrlCommands)
Parameters :
Name Type Optional
commands UrlCommands No
Returns : any[]
import { Pipe, PipeTransform } from '@angular/core';
import { SemanticPathService } from './semantic-path.service';
import { UrlCommands } from './url-command';

@Pipe({
  name: 'cxUrl',
})
export class UrlPipe implements PipeTransform {
  constructor(private urlService: SemanticPathService) {}

  transform(commands: UrlCommands): any[] {
    return this.urlService.transform(commands);
  }
}

result-matching ""

    No results matching ""