razor code
@{string razorVar= "test";}
HTML
<div ng-class="{active:vm.testSelected(@razorVar)}"> ...</div>
angular controller function
vm.testSelected = function(jsVar) {
return jsVar== 'test';
}
jsVar is always undefined
Question
What is the correct way to pass this razorVar to my function? (I do not want to use an ng-init)