禁用angularJs路由,routeprovider已经走了走了、路由、angularJs、routeprovider

2023-09-13 03:16:17 作者:無奈伤痛

我建立一个laravel + AngularJS应用中laravel处理路由(因为安全性问题)。起初,我尝试用AngularJS路由了一点,所以我用了一个routeprovider等。现在,我试图摆脱这种,angularJS不断添加#/ partofthelink我的网址的结尾。这是很烦人的,我想摆脱它。

I am building a laravel + AngularJS application where laravel handles the routing (because of security issues). At first I experimented a bit with AngularJS routing so I used a routeprovider etc. Now that I am trying to get rid of this, angularJS keeps adding #/partofthelink to the end of my URL. This is quite annoying and I want to get rid of it.

我已经读了很多有关取出routeprovider等,这已经全部完成。我真的不明白它从何而来。

I have already read a lot about removing the routeprovider etc, this has all been done. I really don't get where it comes from.

我一直在尝试了很多几天了。

I have been trying a lot for a few days now.

任何想法可能会导致这样?

Any ideas what might cause this ?

谢谢!

更新:问题解决了。

UPDATE: Problem solved.

假如在某处使用$航线服务。摆脱它,仍然没有成功。目前看来,引导的UI使用下拉时使用了$位置服务的。所以,我也删除了它在那里。现在,一切工作正常。

Had $route service somewhere in use. Got rid of it, still no success. Now it seems that Bootstrap-ui makes use of the $location service when using a dropdown. So I also deleted it over there. Now everything is working fine.

谢谢!

推荐答案

你用$位置服务?那么你已经摆脱了过于

do you use $location service? then you have to get rid of that too