Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Use jqLite even if jQuery is present. #9767

Closed
cmichal opened this issue Oct 23, 2014 · 8 comments
Closed

Use jqLite even if jQuery is present. #9767

cmichal opened this issue Oct 23, 2014 · 8 comments

Comments

@cmichal
Copy link
Contributor

cmichal commented Oct 23, 2014

With rewritten and faster jqLite in angular 1.3 I would like to use it no matter if I have jQuery in my project or not. Can it be configurable in .run() function?

@caitp
Copy link
Contributor

caitp commented Oct 23, 2014

why include jQuery at all if you're not going to use it?

@caitp
Copy link
Contributor

caitp commented Oct 23, 2014

but maybe we can look at making this configurable using the same machinery as strict-di

@caitp caitp added this to the 1.3.x milestone Oct 23, 2014
@cmichal
Copy link
Contributor Author

cmichal commented Oct 23, 2014

I need to use it for bunch of legacy plugins - we just wrap them as directives. I know that we could rewrite them, but why bother if they are already there?

@miraage
Copy link

miraage commented Oct 24, 2014

👍

Would be great to see config option, to use jQuery or not.

@jbedard
Copy link
Contributor

jbedard commented Oct 24, 2014

Can't you just load angular before jquery?

@cmichal
Copy link
Contributor Author

cmichal commented Oct 24, 2014

according to those comments:

    jqLite,           // delay binding since jQuery could be loaded after us.
    jQuery,           // delay binding

I assume it waits until everything is loaded.

@Narretz
Copy link
Contributor

Narretz commented Oct 24, 2014

Further discussion in this PR:
#2163

@Narretz
Copy link
Contributor

Narretz commented Oct 24, 2014

There's more discussion in this older issue, let's keep the discussion centralized here: #608

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants