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 should have something like an angular directive #37437

Closed
rekna1 opened this issue Oct 11, 2021 · 2 comments
Closed

Blazor should have something like an angular directive #37437

rekna1 opened this issue Oct 11, 2021 · 2 comments
Labels
area-blazor Includes: Blazor, Razor Components design-proposal This issue represents a design proposal for a different issue, linked in the description enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Milestone

Comments

@rekna1
Copy link

rekna1 commented Oct 11, 2021

Summary

Angular directives adds behavior to existing HTML elements. This has the benefit that all attributes and default events of the HTML element remain accessible from HTML.

Motivation and goals

  • as soon as you make a custom component you have to try to foresee every attribute/event you might need on the embedded HTML element.
  • angular directives on the other hands, allow to add behavior to an existing standard html element, leaving all attributes and events accessible from template

In scope

  • allows to extend behaviour of any type of standard html element with ease
  • might even provide defaults for components

Out of scope

Risks / unknowns

Examples

  • drag drop capabilities to existing html elements
  • add configuration to a component ( e.g. consider an autocomplete component with some configuration, you could add reusable configuration / handlers by adding a directive, still allowing for customisation in the html template)
@rekna1 rekna1 added the design-proposal This issue represents a design proposal for a different issue, linked in the description label Oct 11, 2021
@Pilchie Pilchie added the area-blazor Includes: Blazor, Razor Components label Oct 11, 2021
@mkArtakMSFT mkArtakMSFT added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label Oct 12, 2021
@mkArtakMSFT mkArtakMSFT added this to the Backlog milestone Oct 12, 2021
@ghost
Copy link

ghost commented Oct 12, 2021

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@SteveSandersonMS
Copy link
Member

Duplicates #5607

@SteveSandersonMS SteveSandersonMS added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Oct 12, 2021
@ghost ghost added the Status: Resolved label Oct 12, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components design-proposal This issue represents a design proposal for a different issue, linked in the description enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

4 participants