I believe you are trying to deploy different types of apps in same website with same instructions.
One is a SPA another is SSR.
So you need to deploy them separately e.g. myangularapp.com for static app that is deployed with instructions like Angular SSR now Running On Cyberpanel - #5 by josephgodwinke just like a html site
AND api.myuniversalangularapp.com that can be deployed with PM2 as seen here [TUTORIAL] How to deploy a NextJS website on CyberPanel OR [TUTORIAL] How to deploy a AdonisJS Application on CyberPanel