Monitoring a minimal Angular App with the Application Insights Web SDK
npm install -g @angular/cli
ng new insights
cd insights
ng update @angular/cli @angular/core
ng update
ng update rxjs
npm audit fix --force
npm i @microsoft/applicationinsights-web
ng g service services/common/ApplicationInsights
after that modify the ApplicationInsights.service, app.module.ts as described in Julien Dubois - Using Azure Application Insights with Angular (5/7) and additionally show the changes required in app.component.ts so that the service is actually used.
As bonus: different instrumentationKeys for different environments.