how can pass angularjs expression/ varibale asp.net mvc actionlink ?
here asp.net mvc actionlink code
@html.actionlink("{{row.x}}", "details", "info", new { id = "{{row.x}}" }, null)
in first parameter {{row.x}} works fine displays value when being passed route parameter retains {{row.x}} , not evaulate.if remove quotes doesnt compile.
razor code executes @ server. cannot pass client side angular variable route value dictionary parameter html.actionlink
helper method.
what can build html markup link pure html , append angular data in href
value needed. can still use url.action
helper method build correct relative url info action method.
<a href="@url.action("info","details")?id={{row.x}}">{{row.x}}</a>
Comments
Post a Comment