javascript - How do you put angular js expressions in Razor ActionLinks? Or is this possible? -



javascript - How do you put angular js expressions in Razor ActionLinks? Or is this possible? -

i experiment mix of angular js , microsoft mvc razor.

i utilize original razor links:

@html.actionlink("create new", "create", new { elephant = model.elephant ] } )

but instead of reading model, read angular js info using equivalent angular js expression. ie similar to:

@html.actionlink("create new", "create", new { elephant = {{ allanimals.elephant}} ] } )

of course, angular brackets above create syntax error. thought first setting variable using razor @{} syntax, 1 time again repeated utilize of angular brackets cause problem. have been unable find workaround using ng-bind. not thinking razor , angular js don't mix , have alter utilize standard html syntax angular js, correct?

javascript asp.net-mvc angularjs razor

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -