This is what I have understood -
- On clicking the swap button (present in sub-component-a.ts), an event is trigged.
- This event is heard in app.component.ts which performs simple swapping operation on first two car objects.
- The component-a.ts view is updated (without its OnChanges()) being called).
- The sub-component-a.ts (which has @Input() position reference changed) is not updated.
How to swap two component-a, with their corresponding child components, sub-component-a also getting updated?