I have created a form where more than 10 radio groups were being used, so instead of using lightning:input tag several times , I made a child component of the radio group . And used it several times in my parent component form by passing label, name and value from the parent component via attributes.
So, all these radio group input fields are required , so after the form is submitted, in my parent controller I want to validate that all required fields have been filled.
I want to use reduce function for that in order to validate all required fields collectively in my parent component controller. So for that component.find('aura:id of my child component's field') is required.
How can I access child component aura ids in my parent component controller, Is the approach that I am following correct? Or there is a better way to do it.