G
G
gallantalex2017-08-26 12:11:44
JavaScript
gallantalex, 2017-08-26 12:11:44

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

2 answer(s)
A
Alexander, 2017-08-26
@kentuck1213

Typically, RxJS in angular is used to work with data. https://github.com/Reactive-Extensions/RxJS
You can also try Redux.

F
furrya_black, 2017-08-26
@furrya_black

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 question

Ask a Question

731 491 924 answers to any question