Skip to content

Instantly share code, notes, and snippets.

@ronapelbaum
Created July 13, 2016 08:49
Show Gist options
  • Save ronapelbaum/39bd28704922dc43bb24e33a75d2ff86 to your computer and use it in GitHub Desktop.
Save ronapelbaum/39bd28704922dc43bb24e33a75d2ff86 to your computer and use it in GitHub Desktop.
test a directive
function upperCaseDirective() {
return {
template: '<div>{{text}}</div>',
link: function (scope, elem, attrs) {
scope.text = attrs.text.toUpperCase();
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment