I study knockout library and ran into trial. When adding a new item to ko.observableArray using the push () method, nothing is updated on the page. I can not understand why? Here's an example http://jsfiddle.net/95Q45/ I want to do this: if you write something in the "name" field and click on the "add" link, then the list above the input should be updated with the new value.

    1 answer 1

    Change:

    studentsList: { foreach: students }, 

    on:

     studentsList: { foreach: self.students }, 
    • Thank! So earned. It is strange (for me) that without "self." He generally builds this list. It will be necessary to delve into this issue. - ZondArt
    • @ZondArt, I'm sorry, I will not help with this, because Knockout.js saw for the first time - likerRr