Architecting Angular Applications with Redux,RxJS,and NgRx
上QQ阅读APP看书,第一时间看更新

Demoing a uniform data flow

Ok, so we have described the parts our application consists of:

  • A view where a user is able to select an index
  • A dispatcher that allows us to send a message
  • A store that contains our selected index
  • A second view where the selected index is read from the store

Let's build a real app from all of this. The following code is found in the code repository under Chapter2/demo.