Skip to content

Instantly share code, notes, and snippets.

@cideveloper
Last active December 28, 2015 04:09
Show Gist options
  • Save cideveloper/7440157 to your computer and use it in GitHub Desktop.
Save cideveloper/7440157 to your computer and use it in GitHub Desktop.
Angular: Directive Starter
angular.module('moduleName.directives', []).
directive('directiveName', [function() {
return {
//restrict: 'A', // A - Attribute, E - Element, C - Class
//template: 'html inline template'
//scope: {}, // Isolates Scope
//transclude: true,
//replace: true,
//link: function(scope,elm,attrs) {
//},
//templateUrl: 'partials/partial-file.html'
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment