最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

framework - Can Angular be used inwith WordPress?

programmeradmin0浏览0评论

Are there any ways to incorporate Angular (Google's Angular, not AngularJS) into Wordpress? Either in the theme or in pages/posts? I may be working on a customer-facing website for a product, and the admin site for the product will be built in Angular. There are versions of some of what will be in the admin section that will also be visible to customers. If we could re-use the Angular code in the WordPress site, that would be ideal.

Are there any ways to incorporate Angular (Google's Angular, not AngularJS) into Wordpress? Either in the theme or in pages/posts? I may be working on a customer-facing website for a product, and the admin site for the product will be built in Angular. There are versions of some of what will be in the admin section that will also be visible to customers. If we could re-use the Angular code in the WordPress site, that would be ideal.

Share Improve this question asked Aug 12, 2020 at 22:01 Steev0Steev0 112 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Logically, I think this can be done. There should be a way to integrate Angular along with Wordpress for your SPA. You would have to use the wordpress REST API to connect them both though. Also, you would need to enqueue the scripts in functions.php for the same. Although I am not sure about running angular code in wordpress. You will need some sort of plugin to help wordpress understand the angular code.

发布评论

评论列表(0)

  1. 暂无评论