I want to know the list of modules already bootstrapped.
I have use ng-app with main modules but there are small modules which are inside it . I have used $controller service inside main controller to access controller of sub module .
So is there any way to know that whether modules is bootstrapped or not?
Sample structure
<div ng-app="main">
<div ng-controller="mctrl">
</div>
<div ng-app="sub">
<div ng-controller="subCtrl">
</div>
</div>
</div>
Controller
var app = angular.module('main',[]);
app.controller('mctrl',function($scope,$controller){
var sub = $scope.$new();
//check module is bootstrapped or not
$controller('subCtrl',{
$scope:scope
});
sub.check();//getting instance of controller
});