How to use string variables in ember helpers (linkTo or partial)?

前端 未结 4 642
攒了一身酷
攒了一身酷 2021-01-05 10:15

I need to setup array of menu links in the router and then render them in template using #each. But seems like #linkTo helper didn\'t recognize variables. How can i solve th

4条回答
  •  感情败类
    2021-01-05 10:18

    You can't use variable inside linkTo helper, you need to use bindAttr on an anchor tag instead

    link
    

提交回复
热议问题