KnockoutJS - attr binding $data not working

m0d hippY

New Member
I have this:\[code\]<a href="javascript:void(0);" data-bind="attr: { onclick: 'CreateChatWindow(\'$data.peer\');'}" class="socialsChat"><img src="http://stackoverflow.com/questions/15853844/~/Content/Styles/Default/Images/Icons/chat.png"/></a>\[/code\]Now, the output looks like that:\[code\]<a href="javascript:void(0);" class="socialsChat" onclick="CreateChatWindow('$data.peer');"><img src="http://stackoverflow.com/questions/15853844/~/Content/Styles/Default/Images/Icons/chat.png"/></a>\[/code\]Why isn't \[code\]$data.peer\[/code\] getting it's value from my model?
 
Back
Top