UNPKG

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) 444 B
'use strict'; /** * @ngdoc directive * @name angular-timeline.directive:timeline-badge * @restrict AE * * @description * Shown in the centre pane (or left on narrow devices) to indicate the activity. */ angular.module('angular-timeline').directive('timelineBadge', function() { return { require: '^timelineEvent', restrict: 'AE', transclude: true, template: '<div class="timeline-badge" ng-transclude></div>' }; });