Js code in APS doesn't work in alfresco development framework ADF
Re: Js code in APS doesn't work in alfresco development framework ADF
I've wanted to the same thing a while ago with the ADW instead of an ADF app and as far as I am concerned there is no way to execute the APS JS code from the ADW/ADF app because of different major versions of angular. Since APS uses angular 1.x and ADW/ADF uses angular2+. At least that is what I've been told.
What you can do is let your ADF app execute the JS code and access APS variables/elements to manipulate them. You could add custom stencils in APS and the corresponding code in the ADF app.