How to open new tab in browser by using $location, angular?

后端 未结 4 2038
太阳男子
太阳男子 2021-02-11 21:56

I have controller \'reportCtrl\' and HTML that represents 6 tables with data and only several rows I show at once.

app.js

v         


        
4条回答
  •  春和景丽
    2021-02-11 22:43

    For opening a new view in a new window, execute the following code:

    window.open($location.$$absUrl.replace($location.$$path,NEW_PATH), '_blank');
    

提交回复
热议问题