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
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
Comments
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.