I'm trying to move my angular application to wordpress. For that, I don't need all the components because some things are done with wordpress. But I need to be able to use the selectors. I'm using the normal wordpress build, not Angular-WP. For that first, I started making a prod of the angular app.
ng build --prod
To insert all the files was hard, because I get wordpress.com and not .org so I used the next command for making a single file of js
"buildForShip": "ng build --prod --output-hashing=none && cat hosting/public/{runtime,polyfills,scripts,main}.js > plainHTML/ship.js"
The problem comes when adding the file to WP it says:
"No base href set"
For that I add the <base href="/">
But then is throwing the next error: "Uncaught SyntaxError: missing ) after argument list"
I also have looked for Angular Elements like in this blog
But It hasn't worked too, maybe I'm oing something bad.
I think if can get the selector working in a plain html file, like index.html; will be easier to import on WP.
Anyone could help or have some idea about?
Thank for all guys.