I have an application where I'm loading a login modal asynchronously so it's available across the multiple platforms that make up the application. I'm loading and binding the HTML for the modal, but I can't find a way to initialize the Angular controller that is IN the modal after loading it asynchronously. Here's the basic idea:
<div ng-controller="loginController" ng-init="loadModal()">
<a ng-click="openModal()">LOG IN</a>
<div ng-bind-html="modalHTML">
// Once loaded, I need to initialize the AngularJS in here, fr'ex:
<ul>
<li ng-repeat="item for item in items>{{item.blerg}}</li>
</ul>
</div>
</div>
Note, I'm not actually using ng-init, I'm loading via a service. This is a super-dumbed-down version because making JSBins takes a poopload of time.