Skip to content

Instantly share code, notes, and snippets.

@landongn
Created August 16, 2013 22:44
Show Gist options
  • Save landongn/6254142 to your computer and use it in GitHub Desktop.
Save landongn/6254142 to your computer and use it in GitHub Desktop.
directive
angular.module('epk').directive('gallery', function factory() {
'use strict';
return {
restrict: 'E',
transclude: true,
replace: true,
templateUrl: 'views/directives/gallery.html',
link: function (scope, element, attrs) {
console.log('linked!');
console.log(scope, element, attrs);
},
compile: function (){
console.log('compiled');
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment