-
Notifications
You must be signed in to change notification settings - Fork 58
Validation message not showing on ng-repeater after back navigation. #137
Comments
Hmm I have noticed this in the past, but never got time to debug it. It might be a timing issue, there's so many timing issue in Angular that's it's annoying sometime to debug. Also, I can see that the ValidationSummary doesn't get filled in correctly either (it works on first load but not after leaving and coming back). You can see the summary by adding this <div class="alert alert-danger alert-dismissable">
<ul>
<li ng-repeat="item in validationForm.$validationSummary">{{item.field }}: {{item.message}}</li>
</ul>
</div> I seriously don't know when I'll have time to debug this. I'm trying to work on some other things in my free time. However, that seem to be where to start |
Hello and sorry for the delay, I am planning on passing more time in resolving some of these issues during my upcoming Christmas holiday. I was looking at some of my Global Options available and just remember that I have an option called Would you be able to use the unminified version of I will probably need another Global Option asking which Router has the user setup in his project and make the regular |
Actually this was bothering me too much, so I made a quick change in my code (I added a second watch for I will close this issue for now since I think that it's fixed (if not, I can re-open it). |
First, thank you for writing this library.
We have an ng-repeater with (n) columns wide and a few rows. Each column has an input element that can be updated, thus it needs validation. When we navigate to a new route and then either click the browsers back button and or ng-click back to the route the validation occurs but the div below does not show.
We have tried to use the validation-error-to directive and explicitly added a div in hopes that this would be a work around but it was not a successful attempt.
Below I have made a plunker that begins on the "Home" view then navigates to "People" with a repeater and then on to an "Away" route. If you run the plunker and you click to the Away route and then go back you will notice when you clear out the input field that the validation message does not show. However the validation message will show before you $state.go to another route.
https://plnkr.co/edit/AvazGJNmbjR1x2T4RMfS
While making the plunker and simply using window.location.href = 'http://www.google.com'; I was able to navigate back and I believe the validation message fired.
This leads me to wonder if the combination of angular-ui-router with the ghiscoding-validation is the issue?
The text was updated successfully, but these errors were encountered: