docs: function addValidations(scope, validations) {
          for (var name in validations) {
              if (validations.hasOwnProperty(name) && validations[name]) {
                  scope[name] = $injector.invoke(validations[name]);
              }
          }
      }