angular dynamic attribute and its value code example Example: add dynamic value to id attribute in angular 8 <div [id]="'demo'+this.dynamic_id"></div>