I have a hiccup at work, and have been trying to reproduce it.
Interaction of routes with validation, I think it might be tied up with $destroy of scopes, but not sure.
This example is not the same behaviour I have at work but this is related.
It is similar as it is the same error message 1. below.
There is a chance I have just mucked my code and so its my bug not one in angular-validation, but I think I have squashed most of the dumb out of the example now.
http://plnkr.co/edit/c94r1xA8e0M3iXnWCe6w?p=preview
Load the demo, then click in FIeld1 and click out no error.
Load the demo, then click in Field1 and type a letter no error.
Now click on "First" next to "Choose Route" this activates the route.
Now two errors occur.
- Go to field 1 and type a letter get an error in javascript console.
"TypeError: Cannot set property '$validationSummary' of undefined"
- The following error appears if you click in Field1 and the click out of it to blur.
"Uncaught TypeError: Cannot read property 'isValidationCancelled' of null"
Sometimes I can get error case 1. without typing anything into field one, but its hit and miss and not frequently.
If line 37 is commented out - "var v = new validationService()", then error 1 does not happen, but 2. still does.
Cheers, Rob.