1 year ago
#369878
Veera
after cloning the object of form group the get method is not a function
I am clone a object like below since if I do some operation in the parent component the child component is getting triggered which should not be the case so cloning the object.
result is the data which is emitted from child as FormGroup in parent component trying to clone it. the clone works but if i try to get the properties of FormGroup gives as undefined.
let form=Object.assign({},result);
form.get('somename');
angular
angular8
angular10
angular12
0 Answers
Your Answer