I have an AngularJS modal that works within an app that has been built using BackboneJS. The header of the page is built by the Backbone code. There is a button in this header, which when clicked opens up the angular modal.
Unfortunately, the button itself is added to the header after the DOM loads, so angular has already finished bootstrapping. Owing to this, the ng-click directive that has been attached to the button in the header, is not recognized by angular.
How do I make sure angular knows that changes have been made to the DOM? Is there a way to bootstrap angular any time I anticipate changes to the DOM from outside angular?