old_contents: /* global angular */
  'use strict'; // jshint ignore:line
  
  
  angular.module('lumx.text-field', [])
      .directive('lxTextField', ['$timeout', function($timeout)
      {
          return {
              restrict: 'E',
              scope: {
                  label: '@',
                  type: '@?',
                  name: '@?',
                  disabled: '&',
                  error: '&',
                  valid: '&',
                  fixedLabel: '&',
                  model: '=?'
              },
              templateUrl: 'lumx.text_field.html',
              replace: true,
              link: function(scope, element, attrs)
              {
                  if (angular.isUndefined(attrs.type))
                  {
                      scope.type = 'text';
                  }
              }
          };
      }]);
  
new_contents: /* global angular */
  'use strict'; // jshint ignore:line
  
  
  angular.module('lumx.text-field', [])
      .directive('lxTextField', ['$timeout', function($timeout)
      {
          return {
              restrict: 'E',
              scope: {
                  label: '@',
                  type: '@?',
                  name: '@?fieldName',
                  disabled: '&',
                  error: '&',
                  valid: '&',
                  fixedLabel: '&',
                  model: '=?'
              },
              templateUrl: 'lumx.text_field.html',
              replace: true,
              link: function(scope, element, attrs)
              {
                  if (angular.isUndefined(attrs.type))
                  {
                      scope.type = 'text';
                  }
              }
          };
      }]);
  
subject: fix text-fields: replace "name" by "field-name"