禁用angularJs路由,routeprovider已经走了 [英] Disable angularJs routing, routeprovider already gone

查看:374
本文介绍了禁用angularJs路由,routeprovider已经走了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个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

这篇关于禁用angularJs路由,routeprovider已经走了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆