#How to populate data in another tab when we save the form in another tab

1 messages · Page 1 of 1 (latest)

solemn marsh
#

when we are filling data in one form and when we click save, this data should populate in another tab with all the events present in the sql.

copper lagoon
#

I guess the best approach would be to create a service with a Subject(). When you click save you can emit on the subject using next() and in the other tab you can subscribe (or use | async) to get the data.
You can either emit the whole data to the subject or you could fetch the data with a GET request.

simple minnow
#

That will only work if by "tabs", you mean tabs in your own UI, and not tabs of the browser. You should clarify your question

solemn marsh
#

@simple minnow Tabs in UI

solid kernel
#

on click on another tab, u need to subscribe new data.or after saving do subscribe before navigating u can subscribe new data and pass into your next tab.