1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Conditional Styling of an Angular component

Discussão em 'Angular' iniciado por Shoaib Iqbal, Setembro 30, 2024.

  1. Shoaib Iqbal

    Shoaib Iqbal Guest

    I am trying to style a component on basis of a condition in following way.

    <div class="col-md-3 d-flex justify-content-center align-items-center" ng-style ="{ ' background-color' : (vars.state=='Signup')? '#73c7af' : '#ffffff' }">


    and my vars.state=Signup. So it according to this background of this div should be #73c7af but it still white. Can anybody tell me where I am making mistake?

    Continue reading...

Compartilhe esta Página