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

Add support for @attribute directive #10393

Closed
mkArtakMSFT opened this issue May 20, 2019 · 2 comments · Fixed by dotnet/razor#607
Closed

Add support for @attribute directive #10393

mkArtakMSFT opened this issue May 20, 2019 · 2 comments · Fixed by dotnet/razor#607
Assignees
Labels
area-blazor Includes: Blazor, Razor Components Done This issue has been fixed enhancement This issue represents an ask for new feature or an enhancement to an existing one

Comments

@mkArtakMSFT
Copy link
Member

This will enable a syntax for using existing attributes in .razor files

@mkArtakMSFT mkArtakMSFT added enhancement This issue represents an ask for new feature or an enhancement to an existing one PRI: 1 - Required area-blazor Includes: Blazor, Razor Components labels May 20, 2019
@mkArtakMSFT mkArtakMSFT added this to the 3.0.0-preview6 milestone May 20, 2019
@SteveSandersonMS
Copy link
Member

Example usage:

@attribute [Authorize]

@rynowak
Copy link
Member

rynowak commented May 20, 2019

@ajaybhargavb @NTaylorMullen this is a new kind of token for directives. Keep in mind we will need to support all of the things that the attribute syntax in C# supports.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components Done This issue has been fixed enhancement This issue represents an ask for new feature or an enhancement to an existing one
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants