docs(music-controls): fix example code (#1315)

The sample code does not work...this change returns the observable first with subscribe() before actually calling the Observable's subscribe method.

In fact, the way it's written in the example, the code would not build because of typescript errors.
This commit is contained in:
Joel Szwarga 2017-04-01 22:38:17 -04:00 committed by Ibby Hadeed
parent 4ceb340630
commit 24c8d5d627

View File

@ -56,7 +56,7 @@ export interface MusicControlsOptions {
* ticker : 'Now playing "Time is Running Out"'
* });
*
* this.musicControls.subscribe(action => {
* this.musicControls.subscribe().subscribe(action => {
*
* switch(action) {
* case 'music-controls-next':