Skip to content

Instantly share code, notes, and snippets.

@xcarpentier
Created October 17, 2014 11:11
Show Gist options
  • Save xcarpentier/a7028ef89401504fe28d to your computer and use it in GitHub Desktop.
Save xcarpentier/a7028ef89401504fe28d to your computer and use it in GitHub Desktop.
<!-- À éviter -->
<div class="my-calendar-range"></div>
/* À éviter */
angular
.module('app.widgets')
.directive('myCalendarRange', myCalendarRange);
function myCalendarRange () {
var directive = {
link: link,
templateUrl: '/template/is/located/here.html',
restrict: 'C'
};
return directive;
function link(scope, element, attrs) {
/* */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment