Closed SuperlativeEntity closed 8 years ago
Hi,
That error means that some of the required js files isn't being loaded or the order of loading is wrong (jquery before angular). Can you check if this is the case in your code?
I have it in the following order:
<script src="vendor/angular/angular.js"></script>
<script src="vendor/angular-route/angular-route.js"></script>
<script src="vendor/jquery/jquery.js"></script>
<script src="vendor/jquery/jquery.validate.js"></script>
<script src="vendor/jquery/additional-methods.js"></script>
<script src="vendor/angular-validate/angular-validate.js"></script>
Hi,
jquery must be loaded before angular!
Thanks, seems to be grafting
hello
I am using the plugin with ionic and this is my files order
`
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
<script src="lib/jquery/dist/jquery.min.js"></script>
<script src="lib/jquery-validation/dist/jquery.validate.min.js"></script>
<script src="lib/jquery-validation/dist/additional-methods.min.js"></script>
<script src="lib/jpkleemans-angular-validate/src/angular-validate.js"></script>`
and I am getting same error. Could anyone help! please
Hi,
Try to load jquery before ionic.bundle.js
.
Yeah Thanks I just did it before your replay. Thanks Alot Life Saver 👍 👍 💯
I keep getting the following error:
element.validate is not a function
Sidenote: I'm using controller as
View
Controller