-2

When I use AngularJS with a symfony form, with constraint validation. Then if I submit my form with invalid data, the system redirect me to the form with error messages, but all the inputs are empty, so the user can't see the invalid values that he entered.

Apparently, this error is caused by AngularJS because he initiate the models.

What can I do to solve this problem?

2
  • Please post your code in question. Thank you!
    – Alvin Bunk
    Commented Oct 5, 2016 at 15:31
  • thank you i solved the problem by doing this : ng-init="prenom = '{{ form.prenom.vars.value }}'"
    – E . Younes
    Commented Oct 6, 2016 at 9:12

1 Answer 1

0

I solved the problem by doing this : ng-init="prenom = '{{ form.prenom.vars.value }}'".

Not the answer you're looking for? Browse other questions tagged or ask your own question.