[Knockout] $parent: a way to refer the parent model from a foreach loop

knockout
(Dmitry Fedyuk) #1

you can use $parent to refer to data from outside the foreach

http://knockoutjs.com/documentation/foreach-binding.html#note-2-using-index-parent-and-other-context-properties

0 Likes