Is it possible in a Cordova/Ionic-app to bind a template to a controller without state?
<p>I'm working on an Ionic-app.
On one of my templates i have a div in which i want to load one of my other templates.</p>

<p>The loading was programmed in controllers.js like that:</p>

<pre><code>    var panel_dynamic = document.getElementById('panel_dynamic');
    if (panel_dynamic.hasChildNodes()) {
        panel_dynamic.removeChild(panel_dynamic.childNodes[0]);
    }
    var line = document.createElement("div");
    if(item.id == 9999)
    {
        $.get("templates\\type-of-test.html?Param=" + item.id, function (response) {
            line.innerHTML = response;
        });
        panel_dynamic.appendChild(line);
    }
</code></pre>

<p>As You can see i open the template "type-of-test.html" with a parameter inside a div called "panel_dynamic".
Unfortunately in this case it's not possible to connect my template with it's controller by a state (defined in app.js).
I tried to use ng-controller in my template "type-of-test.html" like that but no success:</p>

<pre><code>&lt;ion-view view-title="Type of test" ng-controller="TypeOfTestCtrl"&gt;
    &lt;ion-content class="padding has-header"&gt;
</code></pre>

<p>How can i create the reference between my template and the controller?
Thanks in advance!</p>