'How do I test periodic fetching json in Angular

I want to test periodic(1second) fetching json into components. I made setInterval() function in the component's constructor. That function is to call apicallservice. Thing is the local json change leads to instant change in view. How can I see the view change after 1 second? Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source