Is there a simple way to use button to navigate page as a link does in angularjs

后端 未结 7 1400
慢半拍i
慢半拍i 2020-12-23 21:31

In angularjs, I want to use button like this, but I still need the button looking.

7条回答
  •  温柔的废话
    2020-12-23 21:46

    For me, best solution is to use Angular router native directives with ui-sref like:

    
    

    To understand that directive and get more options visit ui-router docs at:

    https://ui-router.github.io/docs/0.3.1/#/api/ui.router.state.directive:ui-sref

    : )

提交回复
热议问题