Reputation: 445
I'm using bower to download UI dependencies and Grunt to build UI. I'm using grunt's wiredep to inject bower packages into index.html file automatically.
Here it injects JQuery after angular js, which prevents me from using all functionalities of JQuery.
How can i load jquery before angular js, so that i can use all jquery's functionalities without breaking my angular js app.
Thanks Satish Lakhani
Upvotes: 0
Views: 852
Reputation: 445
Found solution to this, thought to post here, which may help some one.
Resolved this by using "grunt-wiredep": "^1.9.0". This changed the order as per my requirement (first jquery and then angular).
Thanks Satish Lakhani
Upvotes: 0
Reputation: 1
You should look at requirejs for doing dependency management at runtime. I've found it by far the most complete framework. Additionally it also promotes modular programming using AMD and it works with even non-amd libs by using shim.
Upvotes: 0