Skip to content

Instantly share code, notes, and snippets.

@puglyfe
Last active August 29, 2015 14:15
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 puglyfe/ccc0ab59a3e909312254 to your computer and use it in GitHub Desktop.
Save puglyfe/ccc0ab59a3e909312254 to your computer and use it in GitHub Desktop.
Angular directive for BigText.js
// 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