Passing parameters to Angular UI router template
<p>My angular ui router is changing states/views as:</p>

<pre><code>    $stateProvider
        .state({
            name: 'home',
            url: '/',
            template: '&lt;home-view&gt;&lt;/home-view&gt;',
        })
</code></pre>

<p>Is there way pass bound parameters to &lt; home-view > in UI router ? </p>

<p>E.g.</p>

<pre><code>&lt;home-view my-data="dataObject"&gt;
</code></pre>

<p>or</p>

<pre><code>&lt;home-view my-data="myService.getMyData()"&gt;
</code></pre>

<p>Controller for my-view is located in own file with the actual template &amp; directive.</p>