Exceptionless.JavaScript icon indicating copy to clipboard operation
Exceptionless.JavaScript copied to clipboard

Update docs to showcase session tracking and es6 syntax

Open niemyjski opened this issue 7 years ago • 0 comments

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();

niemyjski avatar Apr 20 '17 17:04 niemyjski