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


I am experimenting with a combination of angular JS and Microsoft MVC with the razor.

I would like to use my original razor link:

  @ html.ActionLink ("create new", "create", new {elephant = model.alifant}} )  

But instead of reading from the model, I want to read from Kangariah JS data using something equal to angular JS expression. Ie is something like this:

  @ html.ActionLink ("create new", "create", new {elephant = {{all animals.elephant}}]})  < / Pre> 

Of course, angular brackets above make a syntax error. I thought that the first razor @ {} is using a variable using syntax, but again the repeated use of coal brackets causes problems. I am unable to find a solution using ng-bind . I'm not thinking that razors and angular js do not mix well and I just have to convert to use standard HTML syntax with Connel JS, is that right?


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -