# trasier-ng

> [![Travis build badge](https://img.shields.io/travis/trasiercom/trasier-ng.svg)](https://travis-ci.org/kreuzerk/ng-sortgrid) [![codecov](https://codecov.io/gh/trasiercom/trasier-ng/branch/master/graph/badge.svg)](https://codecov.io/gh/kreuzerk/ng-sortgrid

Latest version **1.0.1** (published 2019-04-25) · 0 weekly downloads

## Install

```sh
npm install trasier-ng
pnpm add trasier-ng
yarn add trasier-ng
bun add trasier-ng
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-04-25 |
| First published | 2019-04-24 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 61.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | trasier |

## Links

- npm: https://www.npmjs.com/package/trasier-ng
- npm.io page: https://npm.io/package/trasier-ng

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Recent versions

- 1.0.1 (latest) — 2019-04-25
- 1.0.0 — 2019-04-24

## README

[![Travis build badge](https://img.shields.io/travis/trasiercom/trasier-ng.svg)](https://travis-ci.org/kreuzerk/ng-sortgrid)
[![codecov](https://codecov.io/gh/trasiercom/trasier-ng/branch/master/graph/badge.svg)](https://codecov.io/gh/kreuzerk/ng-sortgrid)
[![angular7](https://img.shields.io/badge/angular%207%20ready-true-green.svg)]()

# 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](https://trasier.com/#/)

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

---
_Source: https://npm.io/package/trasier-ng · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
