In order to update current weather information, we need the city-search component to interact with the current-weather component. There are four main techniques to enable component interaction in Angular:
- Global events
- Parent components listening for information bubbling up from children components
- Sibling, parent, or children components within a module that work off of similar data streams
- Parent components passing information to children components