Skip to content

Conversation

@LcsGa
Copy link

@LcsGa LcsGa commented Nov 19, 2023

In order to provide autocomplete on the different types available on static-text, I kept that input with a HostBinding on it!

color = 'black';
@HostBinding('class')
@Input()
type: StaticTextType = 'normal';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice. Really like it. Never thought of doing hostBinding on class 😍

@tomalaforge tomalaforge added answer answer 13 exercice styling labels Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

13 exercice styling answer answer

2 participants