1.0.1 • Published 5 years ago

trasier-ng v1.0.1

Weekly downloads
9
License
-
Repository
-
Last release
5 years ago

Travis build badge codecov angular7

TrasierNg

Angular client for the Trasier system. Trasier is a Data as a Service platform that gives a quick insight into messages exchanged by software services across teams, projects or even companies. It can be used in Software development, bug-, performance-, business- analysis and integration testing. Find out more on our official webpage

Usage

1. Apply the Trasier interceptor

Integrate the Trasier Http Interceptor in your app.module.

import { TRASIER_INTERCEPTOR } from 'trasier-ng';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, HttpClientModule],
  providers: [TRASIER_INTERCEPTOR],
  bootstrap: [AppComponent]
})
export class AppModule {}

2. Init the TrasierNgService and start your conversation

Use the init method in your app.component.ts of the TrasierNgService to set your systemname:

import { TrasierNgService } from 'trasier-ng';

export class AppComponent implements OnInit {

  constructor(private trasierService: TrasierNgService) {}

  ngOnInit(): void {
    this.trasierService.init('trasier-test');
  }
  ...
}

Use the TrasierNgService to start a new conversation. The new conversation is available during your session or until you start a new conversation by calling startConversation() again.

this.trasierService.startConversation();

In case you want to cancel a conversation manually just use the endConversation() method:

this.trasierService.endConversation();
1.0.1

5 years ago

1.0.0

5 years ago