Meteor-Community-Packages / meteor-collection2

A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
https://packosphere.com/aldeed/collection2
MIT License
1.02k stars 108 forks source link

using reactive validation #382

Open dpatte opened 6 years ago

dpatte commented 6 years ago

I have been using collection2 in my meteor projects since Meteor 1.0, but I have never taken advantage of reactive validation - mostly because I am not sure how to use it.

I presume the idea of reactive validation provides a way of automatically notifying a user of invalid fields in a form, keeping track of entered fields that don't match the schema, and revalidating them as they are fixed, but I'm not sure how I would set that up.

This there a code sample of using reactive validation I can peruse?

Thx

dpatte commented 6 years ago

The main issue is understanding how changes to fields in a form are interpreted as reactive data sources for the validation.