asp.net mvc - What happened on location url when click @Html.ActionLink more than twice? -


according to:

route different view(use @html.actionlink , ng-view in view) in asp.net mvc angularjs, ng-view work 1 time, location url strange

<ul>     <li>@html.actionlink("home", "index", "home")</li>     <li>@html.actionlink("device management", "index", "devicemanagement")</li> </ul> 

if click device management first time, location is:(with ngroute "/device" success!)

http://localhost:13060/devicemanagement#/device 

if click again device management, location is:(with ngroute "/device" can't work!)

http://localhost:13060/devicemanagement# 

why "/device" disappear when click @html.actionlink above twice?

what happened @html.actionlink did?

in case, should route angular route in client side.action link should modified:

<a href="/#/home">home</a> <a href="/#/devicemanagement">device management</a> 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -