Open links in new window using AngularJS

后端 未结 7 1215
时光说笑
时光说笑 2020-11-27 04:17

Is there a way to tell AngularJS that I want links to be opened in new windows when the user clicks on them?

With jQuery I would do this:

jQuery(\"a.         


        
7条回答
  •  北海茫月
    2020-11-27 04:59

    I have gone through many links but this answer helped me alot:

    $scope.redirectPage = function (data) { $window.open(data, "popup", "width=1000,height=700,left=300,top=200"); };

    ** data will be absolute url which you are hitting.

提交回复
热议问题