-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary dependence on jQuery #56
Comments
It will work without jQuery only when will be fixed bug angular/angular.js#1459 |
Related pull request: angular/angular.js#3647 |
I proceeded as did maklemenz in the original post; but in addition to the two lines he mentioned, I also changed the line
to
to work around the $compile issue. |
I think it's fixed in 1.2.13, see angular/angular.js@31c450b |
I changed two lines in ng-table and now I can use it without jQuery.
I don't have time to make a pull-request yet, but I hope I will find time in the next days.
Basically I change a line
el = $(item)
to 'el = anguler.element(item)' and replacedelement.filter("thead") .remove();
withelement.find("thead") .remove();
In the examples jQuery is often used for a loading layer. This is not the angular way of live IMHO:
This could be replaced with something like:
or even simplier. I don't want to include the big old jquery for that if angular can handle that itself :)
Are there any reason why jQuery is really needed?
Nice module anyway!
Greets,
maklemenz
The text was updated successfully, but these errors were encountered: