Created
June 6, 2014 09:44
-
-
Save leomrocha/85197ea3514fd725f7c1 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('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