transitionToRoute('route') From Inside Component

后端 未结 6 1182
逝去的感伤
逝去的感伤 2021-01-04 02:18

How do I transition to a route pragmatically from inside a component action?

I tried to use @get(\'controller\').transitionToRoute(\'images\'

6条回答
  •  清歌不尽
    2021-01-04 02:56

    At component.HBS component file make a {{#link-to "routeDestinationYouWant" }}

    For Example:

    {{#link-to "menu.shops.category.content" "param"}}
    {{{Title}}}
    {{/link-to}}

提交回复
热议问题