Over the past few days, I've been diving into AngularJS. While it seemed intuitive in tutorials and videos, when I actually started replacing my current web app code with AngularJS, I encountered numerous issues.
For instance, if I wanted to add HTML to an existing element in the DOM on a certain event using jQuery, I would simply get the element and add the HTML. However, I struggled to figure out how to do the same thing in AngularJS since direct DOM manipulation is discouraged in Angular controllers. How can I access the element that needs to be modified?
Another challenge arises when I need to reset a form element at a certain point. Once again, I find myself grappling with whether I should use jQuery-style element selectors within the Angular controller.
If anyone could provide some guidance or explain how to accomplish these tasks in Angular, I would greatly appreciate it.