Angular5 - set color of div container dynamically

Discussão em 'Angular' iniciado por quma, Novembro 2, 2024.

  1. quma

    quma Guest

    With AngularJS this worked fine:

    <div style="width:10px;height:10px;background-color:{{user.color}}"></div>


    but with Angular5 it doesn't. How to do it with Angular5?

    Continue reading...

Compartilhe esta Página