User Tools

Site Tools


add_attribute_dynamically

Differences

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

Link to this comparison view

add_attribute_dynamically [2018/10/30 11:01] (current)
mihael created
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}}
add_attribute_dynamically.txt ยท Last modified: 2018/10/30 11:01 by mihael