Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Add @ref to a Blazor component in a loop

$
0
0

How to add a @ref to Blazor components inside a loop?

@for (int i = 0; i < 10; i++){<MyComponent @ref="???"/> // I want to add this component to the list}@code{    List<MyComponent> components = new List<MyComponent>();}

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>