Hi project works on Django framework, with some AngularJS part. One of the function of my website is once the user selects any option from the dropdown the url of the website changes. Anyone have any idea how to do? is there any angularJS function for that? Thanks in advance.
嗨项目适用于Django框架,有一些AngularJS部分。我的网站的一个功能是,一旦用户从下拉列表中选择任何选项,网站的网址就会发生变化。任何人都知道该怎么办?那有什么angularJS功能吗?提前致谢。
1 个解决方案
#1
1
You can use $location is you do not want to actually navigate.
你可以使用$ location,你不想实际导航。
$位置文档
If you do want to navigate you can use: $window.location.href
如果您确实想要导航,可以使用:$ window.location.href
#1
1
You can use $location is you do not want to actually navigate.
你可以使用$ location,你不想实际导航。
$位置文档
If you do want to navigate you can use: $window.location.href
如果您确实想要导航,可以使用:$ window.location.href