简体   繁体   English

Hyperlink不支持angular-fullstack yo生成器

[英]Hyperlink is not working with angular-fullstack yo generator

I am working with the angular-fullstack yo generator ( https://www.npmjs.org/package/generator-angular-fullstack ). 我正在使用angular-fullstack yo生成器( https://www.npmjs.org/package/generator-angular-fullstack )。 It's a simple app just to try out the generator, but I have a problem when I am trying to make a simple hyperlink. 这是一个简单的应用程序只是尝试生成器,但我有一个问题,当我试图做一个简单的超链接。

When I use the attribute (href='somewebsite.com') the link goes to "localhost:9000/somewebsite.com" instead of just "somewebsite.com". 当我使用属性(href ='somewebsite.com')时,链接将转到“localhost:9000 / somewebsite.com”,而不仅仅是“somewebsite.com”。 I think it's because something in the routes in the express server but I'm not sure. 我认为这是因为快递服务器中的路线有些东西,但我不确定。
Can someone help me with this noob question...? 有人可以帮我解决这个noob问题......? :P :P

Thanks. 谢谢。 E. E.

I know this is a relatively old question now but the issue is that you are missing the http:// from the front of your href . 我知道这是一个相对陈旧的问题,但问题是你从你的href前面错过了http:// It's not an angular or express issue just a regular html issue. 这不是一个有角度或明确的问题只是一个常规的HTML问题。

Hope that helps! 希望有所帮助! :-) :-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在角全堆栈生成器上启用CORS? - enable CORS on angular-fullstack generator? 哟 angular-fullstack:endpoint 消息不会生成 message.socket.js - yo angular-fullstack:endpoint message does not generate message.socket.js Bootstrap NavBar崩溃在默认的angular-fullstack生成的代码中不起作用 - Bootstrap NavBar collapse not working in a default angular-fullstack generated code Webstorm Karma测试运行程序无法与Yeoman一起使用 - Webstorm Karma Test Runner Not Working with Yeoman angular-fullstack 使用angular-fullstack结构 - Using angular-fullstack structure 使用angular-fullstack生成器时,在后端访问env变量的最佳方法是什么? - What's the best way to access env variables on the back end when using angular-fullstack generator? Angular-fullstack生成器生产应用程序没有正确地提供socket.io? - Angular-fullstack generator production app does not properly serve socket.io? 使用Yeoman的全角堆栈生成器时,如何访问前端的环境变量? - How do you access environment variables on the front end when using Yeoman's angular-fullstack generator? 如何使用angular-fullstack生成器语法使用$ scope和$ watch? - How do I work with $scope and $watch with angular-fullstack generator syntax? 在stateProvider上为特定用户进行身份验证(角全堆栈) - Authenticate on stateProvider for a specific user (angular-fullstack)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM