You need to sign in to do that
Don't have an account?

how to connect two components one calling the other?
hi, I'm creating a lightning application the purpose is to show all the Books in a component with the intent of selecting a book and to create a purchase proposal. after having created a component which shows me the cards of the books, selecting a book should redirect me to another component that acts as a cart to continue my 'order'. How can you connect a component that at the click of a button redirects me to another component where it shows me the cart page on the screen?
Your First component name will be: BookStore this component will have all books information in this component .This componet have a one child component Books. and Books component will have child component Order.
Parent(BookStore) -->>>>>> Child(Boocks)--->>>Child(Order)
https://trailhead.salesforce.com/en/content/learn/projects/communicate-between-lightning-web-components/communicate-from-parent-to-child
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh