Skip to content

Instantly share code, notes, and snippets.

@kevinwestern
Last active December 11, 2015 18:59
Show Gist options
  • Save kevinwestern/4645555 to your computer and use it in GitHub Desktop.
Save kevinwestern/4645555 to your computer and use it in GitHub Desktop.
$scope.playTrack = function(track) {
SC.oEmbed(track.permalink_url, { auto_play: true }, function(oEmbed) {
$scope.$apply(function() {
$scope.embeded = oEmbed;
});
});
};
$scope.$watch($scope.embeded, function(){ console.log('omg'); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment