Communication between two Angular (ver 5, 8) apps (handshake)

What is a recommended approach for communication between 2 Angular apps?

App 1 is a product page for example, and App 2 is the cart.

One requirement is that orders are not persisted. Meaning we cannot call a service from app1 to create the order and retrieve it in app2. The order needs to be created in app2.

One way is using a POST from app1 to app2, but would like to look into other options. I know localStorage is one, but any other better options out there or is that basically it?

1 answer

  • answered 2019-12-13 20:44 Matt

    You could set up a RESTful backend that both Angular apps share. Save and retrieve data as needed. Both apps work in perfect harmony.