AngularJS: Get query string values without a hash in the link

前端 未结 6 1160
逝去的感伤
逝去的感伤 2020-12-29 09:12

I am trying to get query string values using angularjs.

my Url: http://localhost/example.php?sportsId=3

when I applied var goto = $locati

6条回答
  •  既然无缘
    2020-12-29 09:42

    Please refer below links

    var goto = $location.search().sportsId;
    

    Getting values from query string in an url using AngularJS $location

提交回复
热议问题