Home:ALL Converter>Is it possible to programmatically interact with an Angular app in production?

Is it possible to programmatically interact with an Angular app in production?

Ask Time:2019-12-13T20:12:14         Author:doublea

Json Formatter

I'm working on a chrome extension that will fill out forms on different web pages. I'm getting stuck when I reach a site that uses angular. Sometimes I can manipulate the DOM and get the form to fill, but if I run into an ng-select field for instance, there is no easy way for me to fill the form. Some libraries expose public methods and make it easy to interact with their components. Does Angular expose a public api? Is there a way to interact with an Angular programmatically from the DOM in production?

Here is an example page: https://icaeservices.ica.gov.sg/sgarrivalcard/ . If you follow the link and click on individual submission you will get to a form that uses ng-select fields. Is it possible to fill these select fields from the DOM?

Author:doublea,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59322378/is-it-possible-to-programmatically-interact-with-an-angular-app-in-production
yy