Hi, it would be nice to support moment/computed property in date validator. I have a scenario where some field date must be after another field's date. I guess this example explains it pretty well.
expirationDate: [
validator('date', {
// model.createdDate is momentjs object
after: computed.alias('model.createdDate'),
precision: 'day',
message: "Expiration date can't be before creation date.",
})
]
Do you know how to make it work with current date validator? Otherwise, I can provide PR.
Hi, it would be nice to support moment/computed property in date validator. I have a scenario where some field date must be after another field's date. I guess this example explains it pretty well.
Do you know how to make it work with current date validator? Otherwise, I can provide PR.