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 option to group when attribute no has value #8

Open
feiner11 opened this issue Feb 15, 2022 · 4 comments
Open

Add option to group when attribute no has value #8

feiner11 opened this issue Feb 15, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@feiner11
Copy link

feiner11 commented Feb 15, 2022

Would it be possible to add an option to group attributes when they don't have a value? This would be useful for Angular.

Example:
<app-selector> class="some-class" id="anId" formControlName="someControl" appDisableControl required [(ngModel)]="someModel" </app-selector>

Would be very helpful to choose where appDisableControl and required were placed in the list.

Thanks

@NiklasPor
Copy link
Owner

Interesting requirement, I could add an additional matcher for that, but seems very specific to me 👀 Also, the matching is currently only happening via keys and not via values, but it would be possible to implement.

@feiner11
Copy link
Author

It is definitely specific but it would be very useful for Angular since it is very common with directives.

@NiklasPor NiklasPor added the enhancement New feature or request label Mar 28, 2022
@mminor-dev
Copy link

Looking for exactly this functionality. Also Angular context, but could see it being nice for common attributes that don't necessarily have values i.e. <input required>

@publicJorn
Copy link

Nice feature request, I don't think it's specific to Angular either. Check boolean attributes on MDN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants