title: Access $parent's $parent in knockout view - nesting context
body: <p><strong>Updated for brevity</strong></p>
  
  <p>How can I reference the $parents' $parent in nested Knockout foreach / with bindings?</p>
  
  <p>Example -</p>
  
  <pre><code>    &lt;!-- ko foreach: grandParent --&gt;
          &lt;tr&gt;
              &lt;!-- ko foreach: $parent.parents --&gt; // &lt;-- Doesn't work
                  &lt;!-- ko foreach: children --&gt;
                      &lt;td data-bind="if: favToy().name == $parent.$parent.favToy().name"&gt;
                          &lt;span data-bind="text: favToy().name"&gt;&lt;/span&gt;
                      &lt;/td&gt;
                  &lt;!-- /ko --&gt;
              &lt;!-- /ko --&gt;
          &lt;/tr&gt;
      &lt;!-- /ko --&gt;
  </code></pre>
  
  <p><strong>Original</strong></p>
  
  <p>Sorry for the confusing question but I am trying to reach a second level parent's value to check against a value in the current context (like below) to only show a span if it matches a $parent's $parent's value (ugh!)</p>
  
  <pre><code>    &lt;!-- ko foreach: grandParent --&gt;
          &lt;tr&gt;
              &lt;!-- ko foreach: $parent.parents --&gt;
                  &lt;!-- ko foreach: children --&gt;
                      &lt;td data-bind="if: favToy().name == $parent.$parent.favToy().name"&gt;
                          &lt;span data-bind="text: favToy().name"&gt;&lt;/span&gt;
                      &lt;/td&gt;
                  &lt;!-- /ko --&gt;
              &lt;!-- /ko --&gt;
          &lt;/tr&gt;
      &lt;!-- /ko --&gt;
  </code></pre>
  
  <p>It would be easier to do it this way but from what I have read this is not possible or I am doing it wrong :) </p>
  
  <pre><code>    &lt;!-- ko foreach: grandParent --&gt;
          &lt;tr&gt;
              &lt;!-- ko foreach: $parent.parents --&gt;
                  &lt;!-- ko foreach: children ? favToy().name == $parent.$parent.favToy().name --&gt;
                      &lt;td  data-bind="text: favToy().name"&gt;&lt;/td&gt;
                  &lt;!-- /ko --&gt;
              &lt;!-- /ko --&gt;
          &lt;/tr&gt;
      &lt;!-- /ko --&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>