function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LUIGI EMANUEL TAORMINALUIGI EMANUEL TAORMINA 

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?
Best Answer chosen by LUIGI EMANUEL TAORMINA
mukesh guptamukesh gupta
Hi LUNGI,

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