Created
July 13, 2016 08:49
-
-
Save ronapelbaum/39bd28704922dc43bb24e33a75d2ff86 to your computer and use it in GitHub Desktop.
test a directive
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
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