angular.js - Problems encountered when learning ui-router
过去多啦不再A梦
过去多啦不再A梦 2017-05-15 16:59:48
0
2
550

I was using ui-router to make something recently and encountered a problem. The file directory is as follows


The following is the index.htmlui-view in

The following is the routing configuration in app.js

The current url is like this:

Now I want to click 排名 to change the web page URL to this

The following is the code in mainPage.html


But after I clicked on the ranking, I got this error:

I feel confused, please help me check it out, thank you

过去多啦不再A梦
过去多啦不再A梦

reply all(2)
phpcn_u1582

The value of

ui-sref should be the defined state, and

should be placed on the page
ui-sref = "#/mRange"

was modified to

ui-sref = "mRange"
我想大声告诉你

Remove #/ in ui-sref

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template