angular-timeline
Version:
An Angular.js directive that generates a responsive, data-driven vertical timeline to tell a story, show history or describe a sequence of events.
19 lines (17 loc) • 432 B
JavaScript
;
/**
* @ngdoc directive
* @name angular-timeline.directive:timeline-heading
* @restrict AE
*
* @description
* Optional element to show the heading for a `timeline-panel`.
*/
angular.module('angular-timeline').directive('timelineHeading', function() {
return {
require: '^timelinePanel',
restrict: 'AE',
transclude: true,
template: '<div class="timeline-heading" ng-transclude></div>'
};
});