Mercurial > hg > ugly-duckling
view src/app/playback-control/playback-control.component.html @ 426:8fee76ab8e90
Take a callback as a prop for performing an action when requesting an output
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 06 Jun 2017 22:11:59 +0100 |
parents | cc8a1e08dd2d |
children | cf4a17efb5d4 |
line wrap: on
line source
<button md-icon-button (click)="emitFastRewindStart()"> <md-icon>skip_previous</md-icon> </button> <button md-icon-button (click)="emitPlayPause()"> <md-icon> <ng-template [ngIf]="isPlaying()">pause</ng-template> <ng-template [ngIf]="!isPlaying()">play_arrow</ng-template> </md-icon> </button>