angularjs - Empty href tag returns current url on remote server -
i left few href tags without values. after deploying application remote server, tags filled url corresponding app location on server.
so, if application lived @ http://www.foo.org/, href = ""
gets replaced href = "http://www.foo.org/"
.
why?
empty assumes href="#"
try using
<a href="javascript:void(0);">click</a>
or
<a href="" onclick="event.preventdefault();">click</a>
Comments
Post a Comment