3 ms·
Look at angular-ui. A lot of people just invoke jQuery from directives. Sometimes I catch myself doing it from the controller, although that is definitely bad
by sgt 13y ago
Look at angular-ui.
A lot of people just invoke jQuery from directives. Sometimes I catch myself doing it from the controller, although that is definitely bad practice.
- pjmlp 13y agoThanks for the reply. Angula-UI seems a bit too simple in terms of available set of components. I got the idea that although you can use jQuery, it is an anti-pattern and not guaranteed to always work. At least from what I could find in SO and blogs. My main problem is that I and many others in our teams, don't have any problem doing native UIs, but always get lost in the HTML/CSS/JavaScript jungle without designer help. Regardless of the experience level in web projects.
- camus2 13y ago> I got the idea that although you can use jQuery, it is an anti-pattern and not guaranteed to always work. At least from what I could find in SO and blogs. Only jQuery haters say that. jQuery is totally compatible with Angular,and Angular ships with its own jQuery lite, replaced by jQuery when available. The only thing you need to do is wrap jQuery calls into a directive. I use jQuery and plugins all the time with Angular, never had a problem ,as long i dont call jQuery from a controller , only in directives.
- pjmlp 13y agoThanks for the info.