I’m relatively new to both Ionic and Angular. I’m wondering if it’s okay or ‘best practice’ to use jquery along with the Ionic/Angular stack.
I realize that Angular takes care of most of the template/dom manipulations needed but I’m finding it difficult to do other types of manipulations… a good example is that I wanted to create an input mask on a text box… I wanted it to only accept numbers, and format currency… so the text box starts off at $0.00 and as you type in numbers the numbers would fill in appropriately… ex:
inputting 5-3-2-1-5-0 would give you
I decided to write a jquery event handler ( $(document).on(‘keydown’) ) to handle the input but as I did this Angular wouldn’t bind the ng-model variable I placed on the input tag to the function called on in the controller when submitting.
If anyone has any tips, suggestions, or best practices that would be great.