exceptionless / Exceptionless.JavaScript

Exceptionless JavaScript client
http://exceptionless.com
Apache License 2.0
59 stars 24 forks source link

Update docs to showcase session tracking and es6 syntax #73

Closed niemyjski closed 1 year ago

niemyjski commented 7 years ago

We need to update the samples to show how to use the client in es6 (import syntax) and add a angular4 sample :). The closest sample we have is our typescript sample: https://github.com/exceptionless/Exceptionless.JavaScript/blob/master/example/TypeScript/index.ts

Here is the old way that needs to be converted to es6 import

         var config = exceptionless.ExceptionlessClient.default.config;
         client.config.useLocalStorage();
         client.config.setVersion(‘1.2.3’);
         client.config.setUserIdentity(‘id’, ‘friendlyname’);
         client.config.useSessions();
         client.createFeatureUsage(location.pathname || ‘/’).addTags(‘UI’).submit();