docs: add comment about newEvent utility function (#32001)
PR Close #32001
This commit is contained in:
parent
0d186dda35
commit
e7729b6863
|
@ -206,6 +206,7 @@ function heroModuleSetup() {
|
||||||
nameInput.value = 'quick BROWN fOx';
|
nameInput.value = 'quick BROWN fOx';
|
||||||
|
|
||||||
// dispatch a DOM event so that Angular learns of input value change.
|
// dispatch a DOM event so that Angular learns of input value change.
|
||||||
|
// use newEvent utility function (not provided by Angular) for better browser compatibility
|
||||||
nameInput.dispatchEvent(newEvent('input'));
|
nameInput.dispatchEvent(newEvent('input'));
|
||||||
|
|
||||||
// Tell Angular to update the display binding through the title pipe
|
// Tell Angular to update the display binding through the title pipe
|
||||||
|
|
Loading…
Reference in New Issue