Category : iframe

I have this HTML iframe: <iframe class="embed-responsive-item" [src]="displayedVideo?.url" allowfullscreen ></iframe> where in TS displayedVideo is an object: export class DisplayedVideo { title = ”; url: SafeResourceUrl; date = ”; } In my service I have method to get youtube movie, so I can display it at my page: getYoutubeEmbedUrl(videoId: string): SafeResourceUrl { const url = ..

Read more

Am working on angular project. I have working on a scenario like send an event from child to parent. i can able to send event from child to parent, also i can receive with the help of below code. parent js window.document.addEventListener(‘notification’, handleEvent, false); function handleEvent(e) { console.log(e.detail); } Child js thread = $interval(function () ..

Read more

I’ve embedded an iframe on my website as follows: HTML <div style="position: relative; background-color: #8c9099; height: 300px; z-index: 2" (click)="setSelectedCourseElementFiddleUid()"> //jsfiddle.net/tutorpass/wLrk94mp/embedded/html,css,result/?accentColor=335eea </div> JavaScript import { Component, VERSION } from "@angular/core"; @Component({ selector: "my-app", templateUrl: "./app.component.html", styleUrls: ["./app.component.css"] }) export class AppComponent { name = "Angular " + VERSION.major; setSelectedCourseElementFiddleUid() { console.log("hello"); } } But the ..

Read more