I want to show a Component that contains sidebar on a particular daughter route of 'patients', which gets id 'patient/Detail/:id', if I put the same way that is in the routing module does not work.
How can I return the route that gets an id in the 'Showsidebarmenu' method()'?
1
You can use a service to hide/show the sidebar from another component. https://stackoverflow.com/questions/40468172/how-to-share-data-between-components-using-a-service-properly
You can use a service to hide/show the sidebar from another component. https://stackoverflow.com/questions/40468172/how-to-share-data-between-components-using-a-service-properly
– Bruno Cunha