Answer the question
In order to leave comments, you need to log in
How to implement a data change subscription in Angular 4?
Tell me who knows. Let's say there is a main AppComponent component in the todo application, which contains the BoardListComponent component - a list of boards with tasks and the TaskListComponent component - a list of tasks for a specific board. And when you click on some board in Tas kList, only the tasks of this board should be displayed. It is possible to store board in AppComponent in the selectedBoard variable, which can be passed to taskList, but then some logic will be contained in AppComponent. Are there more elegant solutions?
Answer the question
In order to leave comments, you need to log in
Typically, RxJS in angular is used to work with data. https://github.com/Reactive-Extensions/RxJS
You can also try Redux.
Have a look at redux
Here is a great post blog.ng-book.com/introduction-to-redux-with-typesc...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question