Created
December 20, 2015 23:07
-
-
Save gabor-farkas/182cb5848a26f051f96e to your computer and use it in GitHub Desktop.
blog/reusablecomponent/directive1
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
var NameEmailDirective = function() { | |
var directive = {}; | |
directive.restrict = 'E'; | |
directive.template = nameEmailTemplate; | |
directive.scope= { 'name': '=', 'email': '='} | |
return directive; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment