AngularJS and jQuery conflict resolution -


i have built angularjs single page application in asp.net. added jquery in order send uploaded files server. code in jquery short , sweet , solutions saw in angularjs seemed lot more complex. website stops working when include jquery cdn script tag. in developer tools console see error;

error: k undefined n.event.remove@https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js:3:6618

when take out jquery script links error goes away. links include jquery these, placed before angularjs links:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script>var jq = jquery.noconflict();</script> 

the noconflict method doesn't seem solve problem. how correct conflict? there solution keep jquery in application, or should again way upload files using angularjs?

edit:

i'm loading these angular scripts , else homegrown script:

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-route.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular-cookies.js"></script> 

i found angularjs solution uploading file at:

http://www.tutorialspoint.com/angularjs/angularjs_upload_file.htm

so removed jquery scripts application resolving problem.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -