'How to add default properties of input tag dynamically?

I wanted to append the properties of input tag like id, name and value to be added dynamically to the HTML.

<input [id]="cid" [name]="cname" [value]="cvalue"/>

cid, cname and cvalue are available from component in ngOnInit() call.

would this be suffice or is there any other way?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source