A pit when the angular routing Jump

Code scenario is as follows:

Jump to a simple routing (navPush this command is encapsulated, the internal mode is angular jump),

Routing is also configured, the configured address in the browser address bar can also jump to normal,

But the jump by clicking here not life and death, then click appears briefly goal Page, then jump to the home page. . .

The reason is: ,,, pit is empty href attribute.

Solution: Delete the href attribute or href = "javascript :;" is required.

Record what this pit!

<div class="wd_btm_btn">
    <a href="" class="c999" navPush="Nickname">昵称查好友</a>
    <a href="" class="orange" navPush="RegistrationDate">注册日期查好友</a>
</div>

 

Published 98 original articles · won praise 9 · views 50000 +

Guess you like

Origin blog.csdn.net/liucai1018/article/details/101454177