Differences

This shows you the differences between two versions of the page.

Link to this comparison view

add_attribute_dynamically [2018/10/30 12:01]
add_attribute_dynamically [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Add Attribute Dynamically ======
  
 +How to add an HTML attribute to an element dynamically with Angular?
 +
 +    <td [attr.contenteditable]="data.editable === true ? true : null">{{data.value}}</td>
 +
 +{{tag>devel angular}}