Angular ngonit didn’t returns the updated mongodb collections

ngonit is not giving the latest updated collection from mongodb.But when i refresh the browser, then i got the updated data from the database but if i change the route’s then it is not working .I have a nodejs code and mongodb as a supporting database running at nginx server. I have a front end running at localhost:4200 i.e its angular js project.

Let’s say i have one route (/admin/create/) for inserting a data and one route to get the data (/admin/getall). Now when i insert the data and navigate to getall route….i got nothing but when i refresh the page with manual browser refresh, then i get the data.

I don’t whether the issue is with mongodb, nginx, angular.