Closed mnksingh1996 closed 5 years ago
Currently i have an array of exams such as -
examName - examScore - Add/Delete
One can add more exams to the list along with thier score and remove or add them and i need to validate them. Right now we need to initialize the bag so i can't validate them dynamically. Is there any alternative to this?
you can use the attach method of validator on add new exam this.validator.attach({name: examName, rules: xxx})
this.validator.attach({name: examName, rules: xxx})
on remove this.validator.detach(examName)
this.validator.detach(examName)
Versions:
Description:
Currently i have an array of exams such as -
examName - examScore - Add/Delete
One can add more exams to the list along with thier score and remove or add them and i need to validate them. Right now we need to initialize the bag so i can't validate them dynamically. Is there any alternative to this?