title: How to use a script added via JS console to modify form content in an Angular page so it saves changes?
body: <p>I'm trying to add a feature to an existing electron app that uses Angular -- basically I just inject my script once the app is loaded. I want to adding a hotkey to speed up my workflow, the hotkey would virtually click an edit button, append some text to a textarea, and click a save button.  The clicks work fine, but the change I make to the text field vanishes when it clicks save, and I gather this is because it's an Angular app and it's not detecting the change to the textarea.  I don't speak Angular and I'm a bit baffled trying to understand enough.</p>
  <p>I see methods like ChangeDetectorRef.detectChanges which seems relevant but as I'm outside the Angular code I've got no idea how to get a handle to the relevant ChangeDetectorRef to make that call.</p>