Satish Lakhani
Satish Lakhani

Reputation: 445

Load Jquery before angular js

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

Answers (2)

Satish Lakhani
Satish Lakhani

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

Nitin Puri
Nitin Puri

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

Related Questions