How to redirect to another page using AngularJS?

前端 未结 12 670
深忆病人
深忆病人 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:46

    $location.path('/configuration/streaming'); this will work... inject the location service in controller

提交回复
热议问题