Hi, I am just starting to develop a web app using ionic. I find it is a great tool to build native-style interface. However, I am not familiar with AngularJS. And for some other reasons, our team don’t want to use AngularJS for our front-end framework. So my question is:
Is it still proper to use ionic without AngularJS? Does it work well with jQuery?
Yes, I think you can, but you will lose all the AngularJS goodies that comes with Ionic by default and you will have to use the low-level js api which is not fully documented at the moment as far as I know. but if you can dive your way into ionic.js you will get to know all the low-level apis available for you.
There is a small implementation of jQuery built in to Angular. If you need the full force of jQuery, there shouldn’t be an issue. I use jquery and angular together all the time.
Instead of using the shorthand “$” use “jQuery”, btw angularJS has a jQLite version integrated, once you added the full version of jQuery.js inside your html, you will be able to use it through angular.element('.selector') for your example it should be angular.element('.selector').addClass('className').
@mhartington I have a doubt regarding using jQuery along with angular. I have side menu which takes care of the UI routing using Angular and the remaining things like event binding/animating/dom manipulation I would like to go for jQuery.
I’d like to implement a two-fingers zoom in my ionic app, which would increase or decrease the font size of every text, based on the ‘rem’ size unit ; something like [this example][1]
(How) can I do something like that in pure angular ?
Great. The modularization of angular + simplicity of jquery is a great combo.
Apparently I can suffice with jqlite , but will my app slowdown because I use angular + jquery?? and also when should I really include jquery then…
Hi, i am new to ionic. I was trying “cursor focus on next input after the maxlength specified” i tried adding jQuery to my code still using element.next() not able to focus on next input
When i console the element.next() instead of [input] i am getting JQLite {}
Is it possible to use element.next() in ionic or any other option is there to focus cursor on next input?