redirect to an absolute url in angularjs

前端 未结 4 1314
不知归路
不知归路 2020-12-30 01:33

How to redirect user to an absolute url in angularjs.

For example: i have a page, my current url (http://example.com/submit), once the user click some button in th

4条回答
  •  暖寄归人
    2020-12-30 01:59

    I had some issues with the above solutions and came across this and thought I would share. Be sure to inject '$timeout', '$window' into your controller.

            $timeout(function() {
                 $window.location.assign('https://URL');
    
             }, 3000);
    

提交回复
热议问题