admin管理员组文章数量:1426796
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.
I have already read a lot about removing the routeprovider etc, this has all been done. I really don't get where it es from.
I have been trying a lot for a few days now.
Any ideas what might cause this ?
Thanks!
UPDATE: Problem solved.
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.
Thanks!
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.
I have already read a lot about removing the routeprovider etc, this has all been done. I really don't get where it es from.
I have been trying a lot for a few days now.
Any ideas what might cause this ?
Thanks!
UPDATE: Problem solved.
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.
Thanks!
Share Improve this question edited Jun 21, 2017 at 0:22 laser 1,37613 silver badges14 bronze badges asked Aug 22, 2013 at 11:54 Dries MarienDries Marien 2112 silver badges9 bronze badges 2-
If Angular is adding something to the link (that is performing a redirect), there must be a
routerProvider
left somewhere. If possible, post your code here. – Pavlo Commented Aug 22, 2013 at 12:15 - For others who found the "UPDATE" section of this question helpful, this ment in the related AngularJS bug will also be of interest: github./angular/angular.js/issues/4608#issuement-32713399 – user161642 Commented Jan 19, 2014 at 17:34
1 Answer
Reset to default 6do you use $location service? then you have to get rid of that too
本文标签: javascriptDisable angularJs routingrouteprovider already goneStack Overflow
版权声明:本文标题:javascript - Disable angularJs routing, routeprovider already gone - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745464138a2659456.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论