I just followed their guide
<html lang="en">
<head>
<title>Your page</title>
<script src="/js/le.min.js"></script>
<script>
// Set up le.js
LE.init('YOUR-LOG-TOKEN');
</script>
</head>
<script>
// log something
LE.log("Hello, logger!");
</script>
I added those in my index file but throwing http://localhost:4200/js/le.min.js net::ERR_ABORTED 404 (Not Found)
You can add a JavaScript file to your Angular app by adding a
scriptsproperty to your app project in the Angular app's workspace file (akaangular.jsonin your project's root directory):Alternatively, you can set this with the
ng configcommand: