how to send data from a component to second component by clicking a button and navigate to the second component
Here is the official guide on this topic - Angular
But I suspect you may need to grasp other concepts in Angular as well - for this I strongly recommend going through the Tour of Heroes tutorial - teaching you all the architectural concepts - including navigation.
While this does not give you direct answer, it helps for the long term.
Next, posting the code you have tried here will also help giving concreter answers.