module FormAngular::Errors::NgInputError

Public Instance Methods

has_ng_input_error() click to toggle source
# File lib/form_angular/errors/ng_input_error.rb, line 13
def has_ng_input_error
  ng_input_error.present?
end
html_wrapper_options() click to toggle source
# File lib/form_angular/errors/ng_input_error.rb, line 17
def html_wrapper_options
  @options[:wrapper_html] ||= {}
  @options[:wrapper_html].merge!(
    'ng-class' => "{success:'has-success', error:'has-error'}[#{ng_form_expression}.validityClass('#{tag_name}')]"
  )
end
ng_input_error(wrapper_options) click to toggle source
# File lib/form_angular/errors/ng_input_error.rb, line 8
def ng_input_error(wrapper_options)
  html_wrapper_options()
  nil
end