Click here to Skip to main content
15,919,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to learn knockout js and in my project i have used razor view and trying to bind a text to a span tag. but when i run the application, it gives a javascript error on the knockout js file as "JavaScript runtime error: Unable to get property 'nodeType' of undefined or null reference" and doesn't show the data bind value of the span. i am unable to figure out what i am missing. Someone plz help me in this. below is the code i have used.
@section scripts
{


var obj = { name: "my name" };
ko.applyBindings(obj);

}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900