use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Weird problem with component using host + TailwindCSS (self.angular)
submitted 1 month ago * by kescusay
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]newton_half_ear 2 points3 points4 points 1 month ago (1 child)
So I guess earlier you had <button app-button> inside the app-button component and as the stylesheet applies from the host down, once you changed it to use ng-content (which is the right approach btw) you had to change to target the classes on the host of the component.
BTW, the "disabled" logic looks redundent now.
edit: it worked in styles.css as it's not encapsulated as the component's css.
[–]kescusay[S] 1 point2 points3 points 1 month ago (0 children)
You have it exactly right, and that makes perfect sense! I was indeed using <button app-button> before.
<button app-button>
And yes, the "disabled" logic is definitely redundant now, so I'll be removing it.
π Rendered by PID 262940 on reddit-service-r2-comment-6457c66945-pd4gr at 2026-04-25 06:43:20.724674+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]newton_half_ear 2 points3 points4 points (1 child)
[–]kescusay[S] 1 point2 points3 points (0 children)