Skip to content

Instantly share code, notes, and snippets.

@leomrocha
Created June 6, 2014 09:44
Show Gist options
  • Save leomrocha/85197ea3514fd725f7c1 to your computer and use it in GitHub Desktop.
Save leomrocha/85197ea3514fd725f7c1 to your computer and use it in GitHub Desktop.
mainApp.directive('vexchord', function($compile){
//console.log("rendering vextab");
return{
restrict: 'E',
link: function(scope, element, attrs){
var el = createChordElement(createChordStruct(attrs.key, attrs.string, attrs.shape));
$compile(el)(scope);
element.replaceWith(el);
//console.log("finish vexchord processing");
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment