I want to be able to create AngularJS modules at runtime, so I do this:
<section class="panel portlet-item" id="crashpanel"></section>
<script type="text/javascript">
var angularApp = angular.module("Crashpanel", []);
angularApp.controller("CrashpanelCtrl", function ($scope, $http, $compile)
{
console.log("Hello");
});
angular.bootstrap(angular.element("#crashpanel"), [ "Crashpanel" ]);
</script>
But "Hello" is not displayed, because the controller is not attached to the element. How to be able to attach the controller to the element ?