0

Is there a way to integrate Angular 6 to existing wordpress page? For example page-reservation.php and here run angular project! Thanks for answering!

2 Answers 2

1

You can create a REST route on the WordPress side for that page to send the page content and call it from the Angular side using Angular HttpClient.

for more details about the WordPress REST API check https://developer.wordpress.org/rest-api/

Angular HttpClient : https://angular.io/guide/http

Sign up to request clarification or add additional context in comments.

Comments

0

Take a look at Angular Elements.

Angular provides the createCustomElement() function for converting an Angular component, together with its dependencies, to a custom element.

With Angular Elements, you can create Web Components (aka widgets) that can run outside of Angular.


Note that there may be limited/lacking support in some browsers.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.