Posting this GitHub issue.
I want to set up an excel add-in using angular for the taskpane and which also includes ribbon commands and custom functions. I have an existing add-in which does not use angular and includes custom functions and ribbon commands.
How can I "hook" into the angular app from "outside" of it, namely from custom functions (or ribbon commands)? The angular app is bootstrapped from Office.onReady but there's no equivalent for custom functions. I can't just import {ThingService} from "../services" and const thingService = new ThingService() if there are dependencies. That wouldn't include things like interceptors which would add the auth header or error handling.
I can't just import and instantiate my service class from angular, I want to re-use everything I've set up.
Would using events make sense, if the angular app was set up to listen to them on the window object?