C
C#4mo ago
jacks

blazor app need help passing parameter into method call

hi
No description
12 Replies
jacks
jacks4mo ago
No description
jacks
jacks4mo ago
ok so basically display each song and have a button that can delete that song i just don't know how to put the current song into the method call ☹️ or if there would be a better way to do this i'm open to anything
Anu6is
Anu6is4mo ago
Just call the method with the parameter like you normally would
jacks
jacks4mo ago
you can't in blazor i thik theres special syntax but idk it
jacks
jacks4mo ago
No description
Anu6is
Anu6is4mo ago
@(() => RemoveSong(song))
jacks
jacks4mo ago
No description
Anu6is
Anu6is4mo ago
what does your code look like?
jacks
jacks4mo ago
i tried a bunch of differnt combinations with that and none of them worked
jacks
jacks4mo ago
No description
No description
No description
SinFluxx
SinFluxx4mo ago
@onclick="@(() => RemoveSong(song))"
jacks
jacks4mo ago
tysm