Home > other >  How can I pass List from child component to parent component in blazor?
How can I pass List from child component to parent component in blazor?

Time:09-20

I'm learning Blazor technology nowadays. I struggled an at the point but I could not overcome. I need your help.

I just want to pass simple array/arrayList to parent component from child component. Here is my code:enter image description here

enter image description here

Visual Studio does not found error while compiling. The problem is when I send array to parent, it is going null. Please help me.

CodePudding user response:

change the below code:

<ChildComponent Data="TakeData" ...

your code removes EventCallback return value

  • Related