Execute javascript after loading template into view AngularJS
<p>I'm new to Angular and trying to figure out how to run JavaScript which is only specific to one template.</p>

<p>If I include the script in the main page, it doesn't work bevause the specifric DOM relevant to the template has not been loaded yet.</p>

<p>I've tried Event Delegation but that's not working.</p>

<p>Is there a way to include the script inside the controller so it runs after the template called has loaded?</p>

<p>This is my code:</p>

<pre><code>        .when("/user-form", {
        templateUrl: "templates/form.html", 
        controller: "FormControl"})


        app.controller('FormControl', function($scope) {

        });
</code></pre>