I am having a problem getting a component to re-render. I have a breadcrumb component that I want other components to be able to update it by calling a method. E.g. say I have a ViewContact component, I want that component to set the active page in the breadcrumb to be the name of the contact.
The breadcrumb component is being injected into the ViewContact component & I’ve set up the provider for the breadcrumb. The ViewContact component is calling a method on the breadcrumb component which is in turn calling
ngZone.run() as I’ve read should trigger the component to re-render. However it isn’t.
I’ve created a simple Plunker here: http://plnkr.co/edit/rWZ8ZGqmda1cieDmsc2s
Is what I’m trying to do achievable using injection or is there a better way?