![]() |
ko.computed does not update
How come the followButtonText doesn't update then isFollowing is changed?
Code:
function AppViewModel() { |
there is not enough information (esp. about the ko instance) to say anything definite. it might be a scope issue, it might be that the methods do not do what you expect …
|
this is all the code for KO in this app
Code:
<script type="text/javascript">Code:
<button class="radius secondary button" data-bind="text: followButtonText,click: toggleIsFollowing"></button> |
Quote:
if the posted code is everything and ko is supposedly a JS object, you will get a TypeError (ko is null or not an object). |
sorry that gets compiled to false serverside, its Razor asp mvc syntax
|
well, the question about the ko variable remains.
|
sorry I don't get what you mean by ko var.
I just use it like this site: http://learn.knockoutjs.com/#/?tutorial=intro |
aah, now it makes way more sense.
|
1000sandth post!"!!!!!! :)
|
| All times are GMT +1. The time now is 08:06 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.