title: How to pass multiple variables to onload in Angular ng-include?
body: <p>In my Angular program, I would like to use a template that can be passed two variables.</p>
  
  <pre><code>&lt;div ng-include="'myTemplate.html'" onload="{obj: someObject, value: value}"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I wish the above line would work but it doesn't. I can't figure out how to pass these two variables. My template resembles the toy template below (I'm aiming for the same recursive effect). </p>
  
  <pre><code> &lt;script type="text/ng-template" id="myTemplate.html"&gt;
           &lt;h2&gt; {{obj.title}} &lt;/h2&gt;
           &lt;h2&gt; {{value}}-{{$parent.value}}  &lt;/h2&gt;
           &lt;div ng-include="'endpointTemplate.html'" onload="{obj: someObject.innerObjects, value: {{$parent.value + value}}"&gt;&lt;/div&gt;
      &lt;/script&gt;
  </code></pre>
  
  <p>Any ideas on how to do this?</p>