Created
August 16, 2013 22:44
-
-
Save landongn/6254142 to your computer and use it in GitHub Desktop.
directive
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
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