Drop Down / Select Option is working fine , but when dragged inside a form it gives me Error , Pls take a look into it
Without Form it is working well . Pls do a check on it
If i add a formName it causes a different error :
Without Form it is working well . Pls do a check on it
If i add a formName it causes a different error :
So, it seems like your are using Template Driven form approach…
So you need to give your input a name. The input field has a name property by default but the Select doesn’t.
You need to add a Custom Property eg “name” = “control name/ name your input”.
So this name will bind your input to your form, the name value will be used to keep the field properties eg: value, errors, valueChanges etc…