Skip to content

Instantly share code, notes, and snippets.

@ilyachenko
Last active November 30, 2015 21:23
Show Gist options
  • Save ilyachenko/f313630411fabbaa74df to your computer and use it in GitHub Desktop.
Save ilyachenko/f313630411fabbaa74df to your computer and use it in GitHub Desktop.
(function() {
'use strict';
angular
.module('module')
.directive('directiveName', [directiveName]);
function directiveName() {
var directive = {
link: link,
templateUrl: '',
replace: true,
restrict: 'E',
scope: {
modelName: '='
}
};
return directive;
function link(scope) {
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment