Invalid Form - Angular 4.3

0

Imagine that by clicking on the (edit) icon of a grid that represents a record, the user is directed to the other screen where the details of the record are shown. I will represent below with just one field to simplify:

On the screen I show the field using these codes:

So far so good, because upon entering the screen the field is filled correctly. The point is that this field is a required field for the form, but even though the field is filled with the value, the form still has an invalid status. It only changes its status to valid if I click on the field and type some character. The form is only validated if I enter the field and make some changes.

Even my "change" button is only enabled after changing the id field. see the properties of the button.

I have no idea how to solve this problem, something that, in my opinion, should not happen. I await feedback.

    
asked by anonymous 21.11.2018 / 23:18

0 answers