Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leomrocha/449ae973bdfc56e30b26 to your computer and use it in GitHub Desktop.
Save leomrocha/449ae973bdfc56e30b26 to your computer and use it in GitHub Desktop.
mainApp.directive('vextab', function($compile){
return{
//note, WARNING with E (Element) it breaks the placement of the player
restrict: 'EC',
//restrict: 'C',
link: function(scope, element, attrs){
try {
new Vex.Flow.TabDiv(element);
}
catch (e) {
console.log("Error: ", e);
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment