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
-
1Have you taken a look at angular.io/guide/component-interaction ?user13258211– user132582112020-10-15 12:14:12 +00:00Commented Oct 15, 2020 at 12:14
-
For a quick fix, you could setup a singleton service to share the event emission between components.Barremian– Barremian2020-10-15 12:15:29 +00:00Commented Oct 15, 2020 at 12:15
-
@Michael D, can you share a hint on how I can do that?Timothy– Timothy2020-10-15 12:46:12 +00:00Commented 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/6513921Barremian– Barremian2020-10-15 12:50:40 +00:00Commented Oct 15, 2020 at 12:50
Add a comment
|
