AngularJS Load controllers only when parent controller finishes async call
问题 I am building a website with AngularJS and Google Cloudendpoint The architecture is as follow. I have : 1 - a MainCtrl that manages the overall site display (top menus, modals, etc...) <body ng-controller="MainCtrl" ng-cloak main-directive> ... <div ng-view></div> ... </body> 2 - ng-view with a controller for each page that all have a their own controllers managed by the $routeprovider main.js .config([ '$routeProvider', '$locationProvider', '$httpProvider', function($routeProvider,