Sample Angular application integrating Sentry to report uncaught exceptions.
-
Install Angular-cli:
npm install -g @angular/cli
-
Set up a new Sentry Angular project
-
Copy the DSN key from the Sentry Angular project and paste it in /src/app/app.modules.ts
Sentry.init({ dsn: "<YOUR DSN GOES HERE>" });
-
To start the dev server run
ng serve
Navigate to http://localhost:4200/ to launch the application.