I am experimenting with a mix of angular js and microsoft MVC with Razor.
I would like to use my original razor anchors:
@Html.ActionLink("Create New", "Create", new { elephant = Model.elephant ] } )
but instead of reading from the model, I would like to read from Angular Js data using something equivalent to an angular js expression, similar to:
@Html.ActionLink("Create New", "Create", new { elephant = {{ allAnimals.elephant}} ] } )
Of course, the angular brackets above create a syntax error.
I thought about first setting a variable using the Razor @{} syntax, but again the repeated use of angular brackets cause a problem. I have been unable to find a workaround using ng-bind. I am now thinking that razor and angular js don't mix well together and I will just have to change back to using standard HTML syntax with angular js.
Is my thinking correct?