Last active
August 29, 2015 14:15
-
-
Save puglyfe/ccc0ab59a3e909312254 to your computer and use it in GitHub Desktop.
Angular directive for BigText.js
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
// View Big Text on GitHub - https://github.com/zachleat/BigText | |
app.directive('bigText', function() { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attr) { | |
return element.bigtext({ | |
maxfontsize: attr.maxSize, | |
minfontsize: attr.minSize, | |
childSelector: attr.childSelector | |
}); | |
} | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment