Angular js ng style not working

前端 未结 2 2003
借酒劲吻你
借酒劲吻你 2021-01-18 13:08
Select color : 


                        
    
提交评论

  • 2021-01-18 13:37

    for Angular 6, ngStyle can get working as follows

    <p [ngStyle]="{'color': 'red'}"> I Read in Red</p>
    
    0 讨论(0)
  • 提交回复
    热议问题