Angular says dom manipulation should be done in directives. But this was an OK way to do it before multiple things started to need modals.


I think it would be easiest to put a directive in index.html that has all the modal stuff. Then you could just have it ,listening for emits