Last active
September 20, 2015 12:09
-
-
Save mbranicky/3fa1eeb9a39fb573f71f to your computer and use it in GitHub Desktop.
Custom directive (basic example)
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
app.directive('appInfo', function() { | |
return { | |
restrict: 'EA', // E -element, A - attribute, C - class, M - comment | |
scope: { | |
info: '=' // attribute of this directive | |
}, | |
templateUrl: 'js/directives/appInfo.html' | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment