I'm currently working on a project involving AngularJS.
One of the specified requirements is to retrieve the HTML content that is "ng enabled" from the server upon a click event, and then inject it into a <div ng-app>
using JavaScript.
The issue I'm encountering is that the injected HTML content isn't functioning properly, as Angular only goes through the compile and link phases during the initial page load.
Is there a way to manually trigger these phases?
Am I taking the wrong approach to solving this problem? Is there a more appropriate method for achieving the desired outcome?
Thank you