title: Angular 1.2 - replace directive with global settings
body: <p>I have a directive which is replace a specific date (is a flag) with a string.</p>
  
  <pre><code>app.directive('dateToText', ['$timeout', function($timeout) {
      return {
          restrict: 'A',
          link: function(scope, el, attrs) {
              if(scope.currentUserData.selectedLanguage == 'FR') {
                  scope.unKnownDate  = 'Date inconnue'
              }
              else {
                  scope.unKnownDate = 'Date unknown';
              }
              $timeout(function(){
                  if(attrs.value == "01/01/2050" &amp;&amp; $(el).prop('disabled')) {
                      console.log("attrs.value: ", attrs.value );
                      $(el).val(scope.unKnownDate);
                  }
              });
  
          }
      }
  }]);
  </code></pre>
  
  <p>This directive is used for some inputs, but I want to use this logic globally, not to put for every input this directive. </p>
  
  <p>All inputs which are disabled and have value="01/01/2050" must be with value="My text".</p>
  
  <p>Thanks for any idea!</p>