Failed to execute ‘setAttribute’ on ‘Element’: ‘]’ is not a valid attribute name. angular 4

[(ngModel)]="model.description"] // ‘]’ is added unnecessarily

change it to

[(ngModel)]="model.description"

Don’t wrap it to a square bracket.

Update:

You can initialize your model variable as follow according to your need,

model:ModalComponentModel=<ModalComponentModel>{};

OR

model:ModalComponentModel=<ModalComponentModel>[];

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)