jpkleemans / angular-validate

Painless form validation for AngularJS. Powered by the jQuery Validation Plugin.
MIT License
68 stars 33 forks source link

TypeError: c.validate is not a function #6

Closed rohitbind closed 8 years ago

rohitbind commented 8 years ago

TypeError: c.validate is not a function

jpkleemans commented 8 years ago

Hi,

Are you sure you've loaded all scripts (in the correct order) in your html?

<!-- jQuery scripts -->
<script src="path/to/jquery.min.js"></script>
<script src="path/to/jquery.validate.min.js"></script>

<!-- Angular scripts -->
<script src="path/to/angular.min.js"></script>
<script src="path/to/angular-validate.min.js"></script>
rohitbind commented 8 years ago

I am using grunt to concat and make a single file for all dependency.

jpkleemans commented 8 years ago

Can you make sure Grunt concats the files in the correct order? It's important that the jquery files are loaded before angular.

rohitbind commented 8 years ago

yup sure I will do that and update here the same. Thanks for the support :+1: