How to fetch data from db periodically?

Asked on June 29, 2018
Hello,
I have a component 1 in which I have listed the data. In another component component 2 I have called the component 1 selector. Whenever I add or update the data, the selector(component 1) which I called should refresh the data without reloading page. How to do this in angular 2?
Can any one please provide solution for this ?
Thanks & Regards
Shilpa V Kulkarni

Replied on June 29, 2018