EmberJS - How to dynamically generate link with linkTo?

后端 未结 3 826
南笙
南笙 2021-01-18 09:13

Is there a way to dynamically generate a link using the link-to helper by passing a variable with the route path?

For example, instead of hard coding the path like t

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-18 09:35

    Instead of {{linkTo}},you can use {{action}} and handle the event of transition by route name specify in destination property of model.

提交回复
热议问题