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

Allow jQlite only mode ($.controller breaks) #6644

Closed
adewinter opened this issue Mar 11, 2014 · 1 comment
Closed

Allow jQlite only mode ($.controller breaks) #6644

adewinter opened this issue Mar 11, 2014 · 1 comment

Comments

@adewinter
Copy link

Basically, setting jQuery.prototype.controller is a really bad move. AngularJS does that when it detects the presence of jQuery (see here: https://github.com/angular/angular.js/blob/master/src/Angular.js#L1303). As far as I can tell, this is purely for convenience. Unfortunately, because this method isn't namespaced you run into serious issues when other js libs rely on $.controller doing something not angular related.

In our case, JavascriptMVC expects $.controller to exist for it's purposes. When angularJS subsequently loads, it causes JavascriptMVC code to break in a serious way.

Is there some way we could include a way that you can specify that AngularJS should continue to use jQLite even if jQuery is available? Or better yet, have those convenience functions be namespaced?

Thanks,
Anton

@btford btford added this to the Backlog milestone Mar 17, 2014
@btford btford removed the gh: issue label Aug 20, 2014
@Narretz
Copy link
Contributor

Narretz commented Oct 24, 2014

Duplicate of #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

4 participants