K
K
Konstantin2020-10-29 20:44:32
Angular
Konstantin, 2020-10-29 20:44:32

Why emitEvent false doesn't work correctly?

I have a formGroup which I have passed as an input element to a child component:

<app-children [form] = "form">
When in the parent component I set a value for the form element:

this.form.get ('адрес'). setValue ('Значение', {emitEvent: false});

It is still valid in the child component:

this.form.get ('адрес'). valueChanges.subscribe ((значение) => alert ('Готово'));

Why, if I indicated{emitEvent: false}?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question