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

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