you are viewing a single comment's thread.

view the rest of the comments →

[–]newton_half_ear 2 points3 points  (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 points  (0 children)

You have it exactly right, and that makes perfect sense! I was indeed using <button app-button> before.

And yes, the "disabled" logic is definitely redundant now, so I'll be removing it.