Fixes alternateUUID callback, component stack association

This commit is contained in:
Mo Bitar
2018-01-20 18:31:29 -06:00
parent 1dbc394c4d
commit 85cdba7a9e
11 changed files with 75 additions and 64 deletions

View File

@@ -4,7 +4,8 @@ class ComponentView {
this.restrict = "E";
this.templateUrl = "directives/component-view.html";
this.scope = {
component: "="
component: "=",
manualDealloc: "="
};
this.componentManager = componentManager;
@@ -79,7 +80,7 @@ class ComponentView {
$scope.$on("$destroy", function() {
componentManager.deregisterHandler($scope.identifier);
if($scope.component) {
if($scope.component && !$scope.manualDealloc) {
componentManager.deactivateComponent($scope.component);
}
});