'Detecting changes in dynamically loaded components and reflecting in parent
I am trying to refresh the parent component based on changes in the child component. In this case if the child marks a piece of data as finished, I want to refresh the parent to show this change.
The two options I have currently explored:
- Behaviour Subject - Parent makes the initial observable call to get list, child updates isCompleted for the object in the list to true, observable emits back to parent changes (current approach)
- Ouput - child component sets isCompleted to true, and emits isCompletedEmitter value to true
Neither of these strike me as being highly efficient and best way of dealing with child component changes.
Am i missing an approach i can look into that again allows me the parent component to detect changes in child, and take appropriate action within its space?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
