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
  • 9,520
  • 2
  • 25
  • 47

1 Answers1

0

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

Krishna Mohan
  • 1,363
  • 3
  • 17
  • 25