Skip to content

Instantly share code, notes, and snippets.

@ry8806
Last active January 2, 2016 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ry8806/8eb37a32338ab5e45000 to your computer and use it in GitHub Desktop.
Save ry8806/8eb37a32338ab5e45000 to your computer and use it in GitHub Desktop.
myApp.service("PlayerService", [function () {
this.IsPaused = false;
this.CurrentTrack = null;
this.Play = function (track) {
this.CurrentTrack = track;
this.IsPaused = false;
};
this.Pause = function () {
this.IsPaused = !this.IsPaused;
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment