Render main and inspector using angular

This commit is contained in:
Pete Richards
2018-08-16 12:43:10 -07:00
parent 233c17e75b
commit 17cf0cf1e6
22 changed files with 459 additions and 324 deletions

View File

@ -93,7 +93,7 @@ define([
// Initialize the application
$log.info("Initializing application.");
initializer.runApplication();
return initializer.runApplication();
};
return FrameworkLayer;

View File

@ -52,10 +52,7 @@ define(
return match ? match[1] : "";
}
// Reconfigure base url, since bundle paths will all be relative
// to the root now.
injector.instantiate(['$http', '$log', FrameworkLayer])
return injector.instantiate(['$http', '$log', FrameworkLayer])
.initializeApplication(angular, legacyRegistry, logLevel());
};

View File

@ -55,9 +55,12 @@ define(
var angular = this.angular,
document = this.document,
$log = this.$log;
$log.info("Bootstrapping application " + (app || {}).name);
angular.element(document).ready(function () {
angular.bootstrap(document, [app.name], { strictDi: true });
return new Promise(function (resolve, reject) {
$log.info("Bootstrapping application " + (app || {}).name);
angular.element(document).ready(function () {
angular.bootstrap(document, [app.name], { strictDi: true });
resolve(angular);
});
});
};