Skip to content
Snippets Groups Projects
audio.component.ts 408 B
Newer Older
import { Component } from '@angular/core';
import { AudioElement } from '../unit';
import { ElementComponent } from '../element-component.directive';

@Component({
  selector: 'app-audio',
  template: `
    <audio controls [src]="elementModel.src | safeResourceUrl"
           [style.width.%]="100">
    </audio>
  `
export class AudioComponent extends ElementComponent {
  elementModel!: AudioElement;