I'm currently developing Angular 6 project where I have lots of actions item inside single module or route.
What is the best component architecture design for following menu items:
Customer Service Request
a. Service A
b. Service B
c. Service C
Customer Payment Request
a. Payment A
b. Payment B
c. Payment C
All the services/payments require 3 screens :
- Customer Inputs/Forms
- Confirmation Page
- Success Page.
Currently, I have following approach in mind :
- One Request Module which fetches all lists (like accounts list) and pass it to child components as @Input.
- Each Action Item (like Service A) has its own component (like ServiceAComponent) a. ServiceAComponent has further one Child Component for confirmation and Success Page. (ServiceAConfirmationComponent) b. ServiceAConfirmationComponent receives customer inputs from its parent (as @Input) and make service call + show/hide confirmation page on Success. It also sends (@Output) events for cancel.
Is it the right way to proceed ?
any help/comments are welcome. thanks for reading !!
I’ve sent a message to my family and delegated my open source projects to my friends. With my last tweet sent, I turn off my laptop, phone, and tablet. My Digital Sabbath begins in 10 minutes: no digital devices for the next month.