0

Can anyone help me on how to change the src attribute of iframe when a user click on an element from another component's template? I've spent hours battling with this. Here is an image of what I'm trying to achive

enter image description here

4
  • 1
    Have you taken a look at angular.io/guide/component-interaction ? Commented Oct 15, 2020 at 12:14
  • For a quick fix, you could setup a singleton service to share the event emission between components. Commented Oct 15, 2020 at 12:15
  • @Michael D, can you share a hint on how I can do that? Commented Oct 15, 2020 at 12:46
  • @Timothy: There are multiple related answers. You could even refer two of my previous answers: stackoverflow.com/a/63977074/6513921 and stackoverflow.com/a/61806453/6513921 Commented Oct 15, 2020 at 12:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.