+# TODO: dates-picker should be a common component. Template compiling should be revised.
+
 module = angular.module('impac.components.widgets-settings.dates-picker',[])
 
 module.directive('settingDatesPicker', ($templateCache, $filter, ImpacWidgetsSvc, $timeout, $compile) ->


      # Setting is ready: trigger load content
      # ------------------------------------
      scope.deferred.resolve(setting) if scope.deferred
  }
)

    restrict: 'A',
    scope: {
      parentWidget: '=?'
      deferred: '='
      fromDate: '=from'
      toDate: '=to'
      keepToday: '='
