import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'nameGuide' } ) export class NameGuidePipe implements PipeTransform { /**
     * Converts input values into our name guidelines.
     * Letters will be transformed to lowercase and spaces replaced with hyphen.
     */ transform ( value , ... args ) { return String ( value ) . toLowerCase ( ) . replace ( / /g , '-' ) ; } }