ASP.NET Using Knockout.js: Bindings, JSON and Functions (Full)

preview_player
Показать описание
with Expert Instructor -- James Curtis.

Рекомендации по теме
Комментарии
Автор

great tutorial for a biginner, it was really helpful. thank you Mr.Curtis :)

Irshu
Автор

In the JS Function foreachViewModel is a child-function called self.removeProduct.The purpose of this function is to remove an item from the array of self.products. The key is that KOJS does the ko.applyBindings(new foreachViewModel(), $("#foreach-binding")[0]); so, internally, it knows how to “remove” an item from an observable array. Since it knows the index of that DOM element, we are able to reference it by the(this)object. So(this)simply refers to the current element within the foreach loop.

AppDevLearning
Автор

i think that the new application framework jRIApp
is more functional than knockout ant it is also based on MVVM design pattern.

MaximT
Автор

Great tutorial sir,

Because I am new in JavaScript programming, can you explain me what this line mean?
ko.applyBindings(new ifNotMethod(), $('#ifnot-binding')[0]);

Thank you!

mbole
welcome to shbcf.ru