# ngx-juggernaut

> Chemistry Marketing - Angular 5 Api Module (ngx-juggernaut)

Latest version **2.12.1** (published 2019-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngx-juggernaut
pnpm add ngx-juggernaut
yarn add ngx-juggernaut
bun add ngx-juggernaut
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.12.1 |
| Published | 2019-07-03 |
| First published | 2018-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 171.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | chemistrymarketing |

## Links

- npm: https://www.npmjs.com/package/ngx-juggernaut
- npm.io page: https://npm.io/package/ngx-juggernaut

## Dependencies (1)

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

## Recent versions

- 2.12.1 (latest) — 2019-07-03
- 2.12.0 — 2018-10-18
- 2.11.3 — 2018-10-10
- 2.11.2 — 2018-10-10
- 2.11.1 — 2018-10-10
- 2.11.0 — 2018-10-10
- 2.10.1 — 2018-07-13
- 2.10.0 — 2018-06-26
- 2.9.0 — 2018-06-25
- 2.8.0 — 2018-06-08
- 2.7.0 — 2018-05-10
- 2.6.2 — 2018-05-10
- 2.6.1 — 2018-05-10
- 2.6.0 — 2018-05-10
- 2.5.1 — 2018-05-10
- … 37 more at https://npm.io/package/ngx-juggernaut/versions

## README

<a href="http://www.chemistrymarketing.co.uk/">
    <h1 align="center">Chemistry Marketing - Angular 5 Api Module (ngx-juggernaut)</h1>
</a>

<p align="center">
For use with the chemistry marketing API.
</p>

## Table of contents
1. [Getting Started](#getting-started)
2. [Installation Instructions](#installation-instructions)
3. [Post Install Setup](#post-install-setup)
4. [Example Requests](#example-requests)

# Getting Started
ngx-juggernaut is the core module to access the chemistry marketing API via an Angular 5 service.

# Installation Instructions
Install `ngx-juggernaut` from `npm`
```bash
npm install ngx-juggernaut --save
```

# Post Install Setup
Before you can use the API Service you import the Api Module which contains the API Service:
```bash
    imports: [
        ApiModule
    ]
```
To use the API Service you need to add it to your module in the providers array:
```bash
    providers: [
        ApiService
    ]
```

# Example Requests
You can list the available modules by using the getRoutes method:
```bash
    constructor(private apiService: ApiService,) {
        this.apiService.getRoutes().subscribe((routes: Routes) => {
           console.log('routes', routes);
        }, (error) => {
            console.log(error);
        });
    }
```
<br>

You can get the available methods on a module with the following:
```bash
    constructor(private apiService: ApiService) {
        this.apiService.getModule('commerce').subscribe((response) => {
           console.log('response', response);
        }, (error) => {
            console.log(error);
        });
    }
```
<br>

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