Skip to content

Support Angular [ngClass] #187

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

Closed
alexbjorlig opened this issue Sep 10, 2020 · 4 comments
Closed

Support Angular [ngClass] #187

alexbjorlig opened this issue Sep 10, 2020 · 4 comments

Comments

@alexbjorlig
Copy link
Contributor

Angular supports adding classes based on conditions like this:

<div ngClass="{
  'hover:text-blue-700 hover:underline': <some-condition>
}">
</div>

This makes it easy to add classes based on a condition. However, the extension does not seem to work in this case?

Screenshot 2020-09-10 at 21 35 28

Would be awesome if it worked, because it's a fairly common way of assigning classes in Angular

@alexbjorlig
Copy link
Contributor Author

Is this something we could maybe help add support for? Please let me know how we can help fix this, so Angular can have first class support in Tailwind

@marcjulian
Copy link

@bradlc thanks for adding ngClass support!! 👍 did you release a new extension version 0.5.2? It doesn't seem to update for me.

@bradlc
Copy link
Contributor

bradlc commented Dec 1, 2020

Hey @marcjulian, it's published now! Let me know if you run into any issues, cc @alexbjorlig

@bradlc bradlc closed this as completed Dec 1, 2020
@marcjulian
Copy link

Screenshot 2020-12-01 at 12 41 33
Works perfect thanks!

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

No branches or pull requests

3 participants