These are chat archives for angular/angular-2-ionic-2

27th
Jul 2016
Lebogang Mabala
@LMabala
Jul 27 2016 02:05

`
@Component({

selector:'player',

template:

<div id='player'>

    <button id='playPause' (click)='playPause()'>play</button>

</div>

})
`

`
class playerComponent{

audio = new Audio();

audio.src = '1.mp3';

playPause():void{

    audio.play();

}

}

`

Lebogang Mabala
@LMabala
Jul 27 2016 02:12
I have this in my angular code, it gives error audio is not defined in the console, any suggestions?
scarmarco
@scarmarco
Jul 27 2016 21:06
Hey guys
Anyone knows how load data before enter in a view
In ionic