The Wayback Machine - https://web.archive.org/web/20210528173025/https://github.com/dotnet/aspnetcore/issues/33118
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Blazor] Add html attribute to component #33118

Open
netleader opened this issue May 28, 2021 · 0 comments
Open

[Blazor] Add html attribute to component #33118

netleader opened this issue May 28, 2021 · 0 comments

Comments

@netleader
Copy link

@netleader netleader commented May 28, 2021

Hi Folks,
I want to add a data attribute automatically to every component based on the component name:

<div data-template="Components/Counter" />

I tried to create my own ComponentBase class but no success. Any hints?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant