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