Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 1013 Bytes

File metadata and controls

18 lines (10 loc) · 1013 Bytes

Loupe.Angular.Demo

This is an ASP.NET Core application with an Angular frontend that hooks into the @gibraltarsoftware/loupe-angular package to enable client side logging to Loupe.

Running the application

The application can be run through Visual Studio simply by pressing F5.

The demo builds upon the ASP.NET Core Angular template by adding in calls to loupe in various locations:

  • A call is made to loupe.information when the route changes, by hooking in to the Router events from within app.component.ts

  • A call is made to loupe.information when the counter is incremented from within counter.component.ts

  • A call is made to loupe.recordException upon navigation to the /error-page route (which does not exist). This raises an uncaught exception which is automatically picked up by the LoupeErrorHandler.

Additionally it adds the HTTP interceptor to ensure that all HTTP requests have the Loupe Agent IDs attached as headers.