I'm editing a 'new user' / 'editing an existing user' if the page loads and data in form data If so, I'm clearly editing an existing user and this will populate the field as appropriate.
If there is no data in page form data, then it is clearly a new user. If this is a new user, then the field must be empty but error feedback should not be shown
I thought it was whether the original was $. In my example, it looks like my efforts to populate the fields are $$ = false.
How can I adjust both scenarios?
My plumper is a bit basic IN my app, I launch from a page that lists all users (a user click to edit) and there is also a 'add user' button . This means that I can pop the page without form or load without formatting.
I wonder if there is something to do with modeling in two ways?
ng-model = "formData.username" value = "{{formData.username} '}}"
They show an error response because in your CSS style you have defined the input.ng-invalid, which is true, whether it is custom or not Should resolve:
input.ng-invalid.ng-dirty {border: 1px solid # a94442; Profile: 0; -WebKit-Box-Shadow: Inset 0 1px 1px RGBA (0, 0, 0, 0.075), 0 8px RGBA (255, 0, 0, 0.6); Box-Shadow: Inset 0 1px 1px RGBA (0, 0, 0, 0.075), 0 8px RGBA (255, 0, 0, 0.6); }
No comments:
Post a Comment