Use the special property `$parent` to access the previous view context while iterating.