Skip to content

Instantly share code, notes, and snippets.

View rodrigogalindez's full-sized avatar

Rodrigo Galindez rodrigogalindez

View GitHub Profile
// when user clicks on button 'startJob', this is the function that it triggers:
$scope.startJob = function() {
if ($scope.areThereAvailableSegments(jobId)) {
console.log('there are available segments, so we show the text editor');
} else {
console.log('sorry, no more segments available, capo!')
}
};
// returns true or false if there are segments available