有角的网络应用程序有额外的

有角的网络应用程序有额外的

本文介绍了有角的网络应用程序有额外的!在网址中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个使用路由($ routeProvider)在ec2 ubuntu 16.04上运行的基本Angular webapp。当我打开应用程序主页example.com时,而不是打开 http://example.com/#/它会打开 http://example.com/#!/ 还有一个额外的!这是搞乱整个网址/路由结构。不知道我在做什么错,请指教。解决方案 Angular版本1.6增加了一个!到$ location ..检查下面的角度页面... https://docs.angularjs.org/guide/migration#commit-aa077e8 I have a basic Angular webapp running on ec2 ubuntu 16.04, using routing($routeProvider). When I open the application home page say example.com, instead of opening http://example.com/#/ it opens http://example.com/#!/ there is an extra ! which is messing up the whole url/routing structure. Not sure what I am doing wrong, Please advice. 解决方案 Angular version 1.6 adds a "!" to $location.. check the angular page below...https://docs.angularjs.org/guide/migration#commit-aa077e8 这篇关于有角的网络应用程序有额外的!在网址中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-24 11:02