Enabling component interaction

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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.122.11