Within my application, I utilize window instances that can encompass various views. Each window has the capability to contain multiple views as children elements.
function windowController($scope, WindowService) {
WindowService.setWindowConfig($scope.window);
}
function viewController($scope, WindowService) {
WindowService.updateDirtyState(true);
}
I am seeking a method to update the window from its associated view(s), while ensuring that only direct children have the ability to modify their parent windows. Since services are singletons, updating a view would impact all windows collectively.
Is there a solution to achieve this objective without requiring the use of an identifier for tracking purposes?