You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now in a Blazor layout to detect the current page I have to check the current uri with NavigationManager.
I would like to get access from the layout to the class name of the current Blazor component with page directive inside the body of the layout to see if it implements an interface. This is more general than checking an uri with string comparison.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Now in a Blazor layout to detect the current page I have to check the current uri with NavigationManager.
I would like to get access from the layout to the class name of the current Blazor component with page directive inside the body of the layout to see if it implements an interface. This is more general than checking an uri with string comparison.
Beta Was this translation helpful? Give feedback.
All reactions