How to redirect to another page using AngularJS?

前端 未结 12 645
深忆病人
深忆病人 2020-11-27 11:04

I am using ajax call to perform functionality in a service file and if the response is successful, I want to redirect the page to another url. Currently, I am doing this by

12条回答
  •  再見小時候
    2020-11-27 11:38

    Using location.href="./index.html"

    or create scope $window

    and using $window.location.href="./index.html"

提交回复
热议问题