I was needing a way to display certain options on the Blazor NavMenu according to the webpage i was in.
There is a similar question on StackOverflow that helped me out archieving this
But I wanted a specific topic on how to do this(Dynamic NavMenu according to the page) and i'll post my solution to get some feedback if this is the correct way of doing it and also to help others with the same doubt. The following article helped me a lot too:
https://chrissainty.com/3-ways-to-communicate-between-components-in-blazor/