mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
save, work in progress!
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{
|
||||
class AudioPlayer extends HTMLElement{
|
||||
constructor(){
|
||||
super()
|
||||
|
||||
this.attachShadow({ mode: 'open' });
|
||||
this.render();
|
||||
}
|
||||
|
||||
render(){
|
||||
this.shadowRoot.innerHTML = `
|
||||
<audio *ngIf="audioRecorded" controls src="assets/audio/Audiorecord.mp3"></audio>
|
||||
`;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
customElements.define('audio-player', AudioPlayer)
|
||||
}
|
||||
Reference in New Issue
Block a user