Component and other handler deregisterations

This commit is contained in:
Mo Bitar
2020-03-24 12:12:07 -05:00
parent ee7cb1fce6
commit 7aa38cbdb8
11 changed files with 476 additions and 310 deletions

View File

@@ -2,7 +2,8 @@ import template from '%/root.pug';
class RootCtrl {
/* @ngInject */
constructor(applicationManager) {
constructor($timeout, applicationManager) {
this.$timeout = $timeout;
this.applicationManager = applicationManager;
this.applicationManager.addApplicationChangeObserver(() => {
this.reload();
@@ -10,7 +11,9 @@ class RootCtrl {
}
reload() {
this.applications = this.applicationManager.getApplications();
this.$timeout(() => {
this.applications = this.applicationManager.getApplications();
});
}
}