Here is my component where i am loading video id in i tag on click event. I want to access this id from video.component.ts file. And want to load new video dynamically. I can't figure out how to load it.
<li *ngFor="let video of chapter.video"
class="list-group-item hoverEffect">
<a
routerLink="video/{{ video.ytd }}" class="linkHover">
<i
(click)="loadVideo({{ video.id }})" class="fa fa-play-circle float-right"></i>
{{ video.title }}
</a>
</li>
this is function in my ts file
loadVideo(video: any){
this.player = video;
}