Angularjs $state open link in new tab

前端 未结 7 2056
遇见更好的自我
遇见更好的自我 2020-12-01 00:36

I\'m trying to implement an \"open link in new tab\" function using $state.go function. It would be awesome if there was smth like:

$state.go(\'routeHere\',          


        
相关标签:
7条回答
  • 2020-12-01 01:26
    ui-sref="routeHere" href=""target="_blank"
    

    this code solved my problem.

    use this in an anchor tag.

    0 讨论(0)
提交回复
热议问题