Skip to content

Instantly share code, notes, and snippets.

@darethas
Created August 15, 2013 23:36
Show Gist options
  • Select an option

  • Save darethas/6245963 to your computer and use it in GitHub Desktop.

Select an option

Save darethas/6245963 to your computer and use it in GitHub Desktop.

Revisions

  1. darethas created this gist Aug 15, 2013.
    22 changes: 22 additions & 0 deletions angular directive template
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    angular.module('namespace.name', [])
    .directive('spcName, function() {

    return {
    restrict: 'EA',
    template: '<div></div>',
    replace: true,
    transclude: true,
    scope: {},
    controller: controller,
    link: link
    };

    function controller($scope) {

    }

    function link(scope, el, attr) {

    }