UNPKG

vue-dotnet-validator

Version:
15 lines (13 loc) 350 B
class Util { findValidatorGroup(component) { if(!component.$parent) { // Something went wrong, no parent found or properties have changed in vue. return; } if(component.$parent.isValidatorGroup) { return component.$parent; } return this.findValidatorGroup(component.$parent); } } export default new Util();