
function chronoTimerDirective($compile, $log, chronoService) {

  function chronoController($scope, $element, $attrs) {

    var html = '<div>' + $element.html() + '</div>';

    // Use our current scope
    $element.replaceWith($compile(html)($scope));

    var timerName = $attrs.timerName;

    if (!timerName) {
      $log.error('timer-name must be specified');
      return;
    }

    function setTimes(milliseconds) {
      $scope.seconds = Math.floor((milliseconds / 1000) % 60);
      $scope.totalSeconds = Math.floor(milliseconds / 1000);
      $scope.minutes = Math.floor((milliseconds / 60000) % 60);
      $scope.totalMinutes = Math.floor(milliseconds / 60000);
      $scope.hours = Math.floor((milliseconds / 3600000) % 24);
      $scope.totalHours = Math.floor((milliseconds / 3600000));
      $scope.totalDays = Math.floor((milliseconds / 3600000) / 24);
    }

    function render(err, timer) {
      if (err) {
        return console.error(err);
      }

      var startTime = null;

      if (!$scope.startTime) {
        startTime = Date.now();
      } else {
        startTime = (new Date($scope.startTime)).getTime();
      }

      if (isNaN(startTime)) {
        $log.error('Invalid start time specified');
        return;
      }

      $scope.milliseconds = timer.current - startTime;
      setTimes($scope.milliseconds);
      $scope.$digest();
    }

    $element.bind('$destroy', function() {
      chronoService.unsubscribe(timerName, render);
    });

    chronoService.subscribe(timerName, render);

  }

  var ctrlParams = [
    '$scope',
    '$element',
    '$attrs',
    chronoController
  ];

  return {
    restrict: 'EA',
    replace: false,
    scope: {
      'startTime': '=startTime'
    },
    controller: ctrlParams
  };

}

angular.module('angular-chrono')
       .directive('chronoTimer', chronoTimerDirective);

@@ -132,19 +132,20 @@
 tml = '%3C
-div
+span
 %3E' + $el
@@ -166,11 +166,12 @@
  '%3C/
-div
+span
 %3E';%0A

Use span instead of div