M
M
Maxim2018-09-27 09:01:06
Angular
Maxim, 2018-09-27 09:01:06

Adding an Angular form to a WordPress page?

Hello!
There is a form for selling tickets, which is written in Angular. How to correctly add it to the site page on WordPress.
One of the options was to drop the built files, for example, into the root of the site on WP, into <head>insert

<base href="/">
<link href="styles.bundle.css" rel="stylesheet"/>

< /body>Paste before closing
<script type="text/javascript" src="inline.bundle.js"></script> 
<script type="text/javascript" src="polyfills.bundle.js"></script>
<script type="text/javascript" src="main.bundle.js"></script>

Well, on the page on which I need to display this form, insert <app-root></app-root>
How do you like this option? :)
Thank you for your attention

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
ValeraValera, 2018-09-27
@cluberr

And why not to use IFRAME for example?
https://developer.mozilla.org/en-US/docs/Web/HTML/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question