T
T
twist2019-06-05 17:34:41
Angular
twist, 2019-06-05 17:34:41

How to update table data in Angular 7?

There is a table in which the data from a DB is loaded.
how to make it so that when data is deleted from the table, it is updated, otherwise it turns out that they are deleted in the database and not on the page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Eremin, 2019-06-05
@EreminD

well, you need to send updates from the backend that there is no more value in the database:
globally, there are two approaches: push and pull
pull - you send a request to the backend every n seconds, they say give the values ​​​​from the database and update
the push plate every time - via WebSockets or SSE notifications receive updates from the backend (you need to implement sending notifications on the backend)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question