jQuery and AngularJS not working together

前端 未结 3 1106
一生所求
一生所求 2020-12-14 09:59

I am using RequireJS and Angular but they are not working together in my set up. Things work fine when jQuery version is 1.7.2. However I wanted to use jQuery 1.8.1 and jQue

3条回答
  •  一向
    一向 (楼主)
    2020-12-14 10:28

    Using jQuery's noConflict method is a more elegant and future proof solution to this problem.

    View extensive documentation on http://api.jquery.com/jQuery.noConflict/

    UPDATE (example from the link):

    
    

提交回复
热议问题