asp.net mvc - What happened on location url when click @Html.ActionLink more than twice? -
according to:
<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
Post a Comment