How to apply pipe to value in RouterLink?

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

I have the following route in Angular 7:

{{category.name}}
         


        
2条回答
  •  暖寄归人
    2021-01-29 04:19

    Try removing the curly brackets like this:

    {{category.name}}

    You don't need them there because you are using property binding which is already evaluating to TypeScript code.

提交回复
热议问题