Is there a way to obtain the complete path of a FormControl in Angular 4+?
Below is my reactive form structure:
{
name: '',
address: {
city: '',
country: ''
}
}
I urgently require the full path of the control:
const addressFormGroup = this.form.get('address');
const cityControl = addressFormGroup.get('city');
cityControl.plsGiveMeFullPath() // Should return 'address.city'
Are there any built-in methods to retrieve the full path of the cityControl: FormControl | FormGroup?