0

This is fully updated question,

Angular provides two ways to build your wordpress site/application

  1. first choice is completely headless application i.e., you won't deal with wordpress dashboard at all. just fetch data required with the help of WP Rest API endpoints, and
  2. an angular powered wordpress theme.

Can anybody tell pros and cons of each of the above listed steps

Im not good at angular, so any comprehensive information would be appreciated.

3
  • have you tried a e-commerce plugin like WooCommerce ? wordpress.org/plugins/woocommerce
    – mmm
    Commented Jun 15, 2018 at 21:15
  • actually the web application is not woocommerce powered site. it's a fund raising site so user should be able to pay the amount they want from the site. Thanks for the reply
    – maverick
    Commented Jun 16, 2018 at 4:16
  • This question could be helpful: Developing Themes with React/Angular
    – user141080
    Commented Aug 13, 2018 at 6:35

1 Answer 1

0

In general, if you want totally headless application, you should not use wordpress but JS, as with JS you will be able to reuse at least some of the code for both server and client sides.

As for using angular theme.... well the question is still why do you use wordpress at all as you will not get any of the benefits of using plugins to enhance the theme, so what is the added value wordpress gives you, an editor? some server side API you are used to work with? That might be a good enough reasons, but the mileage you will get out of wordpress will be considerably less compare to using a proper theme.

4
  • Im not inteding to use angular powered theme for my client's project but for learning purpose. As far as I know, angular applications are SPAs, and if I could leverage power of angular to my single page theme, it would be awesome. That's all I want to know. Thanks for answer.
    – maverick
    Commented Aug 13, 2018 at 7:02
  • @maverick wordpress is not an application platform, and building web apps is not one of its strengths. As almost everything else you can bend it enough to be something which it was never intended to be, but it is not going to be fun. Commented Aug 13, 2018 at 7:05
  • So, you are saying, best way is to go for completely headless angular application that utilizes wordpress data.
    – maverick
    Commented Aug 13, 2018 at 7:08
  • no, I say that if you want to use JS framework "X" that is intended for building applications, you should not mix wordpress with it unless you have a very good reason (just wanting to play with the framework might be a good enough reason, but it will teach you only how to do client side if you will ever want to build a web app) Commented Aug 13, 2018 at 7:11

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.