Skip to content
Advertisement

How to Save user Activity in angular App? [closed]

I want to get and save user interaction with angular app, and app interactions with the APIs the add this log to a file.

Advertisement

Answer

If I understood your question correctly, you can write common logic on one place for user page navigation and API call.

For page navigation, subscribe to router events. Ex.

JavaScript

For API calls, you can implement HTTP interceptor.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement