[英]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.