Created
June 7, 2014 16:42
-
-
Save leomrocha/449ae973bdfc56e30b26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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