I have a component in which in its html the license plate of a vehicle is written to search for it in the records, if the plate does not exist a modal opens with the vehicle fields to record it.
My problem is that, I want a field to be shown in the modal that says: plate and as a default value it has the plate that the user put in the main component.
Thanks to @Input and @ViewChild, I have the ElementRef of the parent component within the modal, but I can't capture only the value of the parent's text box.
thank you very much for your help.
question from:
https://stackoverflow.com/questions/65927108/passing-form-text-box-value-to-another-component-on-angular 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…