3 ways to add dynamic CSS custom properties in Angular components

Поділитися
Вставка
  • Опубліковано 7 вер 2024

КОМЕНТАРІ • 5

  • @EmilyGHerr
    @EmilyGHerr Місяць тому

    Style binding did the trick for me. Super simple! Thanks for the video tutorial.

  • @akivagubbay1190
    @akivagubbay1190 22 дні тому +1

    Thanks.
    You could also implement the host option in a Directive. Make it reusable.

  • @AllanLange
    @AllanLange Місяць тому

    Love this! So glad I found you channel, you do a very good job at explaining the process and the different options.

  • @vic_shine
    @vic_shine Місяць тому

    thanks for this awesome explain 💯

  • @user-gz9ky5zg7k
    @user-gz9ky5zg7k 26 днів тому +1

    Thank you for your video, solving this problem with 'host' looks really elegant in this particular case. But personally, I think that the usage of 'effect' instead of OnInit life cycle method decrease readability of the code)