How to apply pipe to value in RouterLink?

后端 未结 2 736
说谎
说谎 2021-01-29 03:30

I have the following route in Angular 7:

{{category.name}}
         


        
2条回答
  •  臣服心动
    2021-01-29 04:24

    what about this

    {{category.name}}
    

    and in your constructor,

    constructor(private slugifyPipe: SlugifyPipe) {
    }
    

    also you need to provide SlugifyPipe in your module providers

提交回复
热议问题