Relative Content

Tag Archive for c#blazorcomponents

How to capture the parameter values ​of a component in new variables

I have this component with some parameters that take a value within the same component. What I want is to call the component from another place and there obtain the value of those parameters (not change or assign them, but capture them in new variables) to perform some validations with those values. This is so that a component is initialized by validating in the local storage if there is any key UserMail and if so it captures the value and the idea is to validate and use the component on other pages where at the beginning it is checked if the component contains value in userCorreo and if so, render the pages with that layout My component with parameters: