My App has a Header section and body section, I am using routes so that the body section can navigate between pages, while the header is always there.
The data for the header comes from two services productService.getProducts()
and priceService.getPrices()
which is able to be modified on two of the pages productService.addProduct(produceID)
, productService.removeProduct(productID)
.
The data in the services is updating correctly, but I need a way to tell the header to call getProducts()
and getPrices()
again.
I thought I could have a callback from the pages, but it seems you cannot include a callback in a route?