Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 355 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 355 Bytes

mrvalidate

Easily bind errors returned from an API to a knockout model

Docs

  1. Call .makeValidatable() on knockout observables
  2. When API call failed pass errors to applyValidationErrorsToModel() passing in the view model
  3. To reset call clearValidationErrorsToModel() passing in the view model

Install

bower install mrvalidate --save