#Where ?

5 messages · Page 1 of 1 (latest)

placid tundra
#

i have 3 modules:
/cart ___________(cart need to emit product on cart-store)
............/cart-store.service.ts (1)
/order _________ (order needs to know the products in the cart-store)
/shared
............/cart-store.service.ts (2)

which is the right location (1) or (2)?

coral prawn
wind falcon
#

"shared" typically becomes an unmaintainable big pile of things, better to name it accuratly. It's not because it's not named "shared", that it cant be shared.

Make multiple shared things, with an appropriate name.

#

The idea stays the same tho, just avoid introducing one big shared module, folder or lib.

placid tundra
#

so the best place is (2)
thanks to you both !