S
S
Sasha Yashchuk2019-07-03 14:06:29
Angular
Sasha Yashchuk, 2019-07-03 14:06:29

How to force Angular to re-render the page after adding data from the server?

Todo-list application, there is a component that displays a list of tasks from the server, there is a component that adds a task to the server, how to make a new task appear immediately after adding?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ihor Bratukh, 2019-07-03
@BRAGA96

If the server response is successful, add a new item to the list itself:list.push(item)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question