var defineValidate = require('can-define-validate-validatejs');
var User = DefineMap.extend({
name: {
validate: {
presence: true
}
}
});
// Attach methods to any instance created of `User`
defineValidate(User);
my proposal is to do the same for can-map-backup or can-define-backup which is even a better name
var defineBackup = require('can-define-backup'); // or can-map-backup
var User = DefineMap.extend({
name: {
validate: {
presence: true
}
}
});
// Attach methods to any instance created of `User`
defineBackup(User);
@frank-dspeed commented on Tue Feb 13 2018
In
you can use
my proposal is to do the same for can-map-backup or can-define-backup which is even a better name
@justinbmeyer commented on Tue Feb 13 2018
This would be great