0

I am new in angular and I have two components.

  • In the first component I have modal.
  • Second component I have a button.
  • When I click the button, I would like the modal in first component to show on screen.

I am not sure how to accomplish this, Please help if you have any idea about how to accomplish this, and please share any example.

Marshal
  • 10,499
  • 2
  • 34
  • 53

1 Answers1

0

Here is the implementation of snackbar across components. You can have a similar approach for your modal.

Krishna Mohan
  • 1,612
  • 3
  • 19
  • 27