Sanket Modak
Sanket Modak

Reputation: 17

how to call method on timeupdate of video in angular 2?

I want to call method ontimeupdate event in Angular 2. I have done the following but it is not getting called.

<video  *ngIf="switch1" [src]="content.iframeUrl(0)" (onTimeUpdate)="internal(1)"  id="frame" height="100%" width="100%" controls autoplay></video>

Any other ways to call it?

Upvotes: 0

Views: 1762

Answers (1)

yurzui
yurzui

Reputation: 214067

The correct syntax should be as

(timeupdate)="internal(1)"

Upvotes: 2

Related Questions