Combine linkTo and action helpers in Ember.js

后端 未结 8 1967
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 13:50

I need to combine linkTo and action helpers in Ember.js. My code is:

{{#link-to \'index\'}}Clear{{/link-to}}
         


        
8条回答
  •  一个人的身影
    2020-12-13 14:50

    This works fine in 1.6.0-beta.5:

    
      {{#link-to "some.route"}}
        Click Me
      {{/link-to}}
    
    

    The link will happen and then the click will bubble up to the action handler. It's documented (albeit indirectly) here.

    Edit: corrected syntax in opening link tag

提交回复
热议问题