Skip to content

Instantly share code, notes, and snippets.

View mmoore99's full-sized avatar

Mike Moore mmoore99

View GitHub Profile
angular.module('my.cordova.plugins', ['ionic'])
// for media plugin : http://plugins.cordova.io/#/package/org.apache.cordova.media
.factory('MediaSrv', function($q, $ionicPlatform, $window){
var service = {
loadMedia: loadMedia,
getStatusMessage: getStatusMessage,
getErrorMessage: getErrorMessage
};
function onHasChanges() {
$scope.$on(config.events.hasChangesChanged,
function (event, data) {
vm.hasChanges = data.hasChanges;
});
}
@mmoore99
mmoore99 / 0_reuse_code.js
Created January 18, 2014 16:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console