# kinvey-angular-sdk

> Kinvey JavaScript SDK for Angular applications.

Latest version **9.0.0** (published 2023-07-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install kinvey-angular-sdk
pnpm add kinvey-angular-sdk
yarn add kinvey-angular-sdk
bun add kinvey-angular-sdk
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 9.0.0 |
| Published | 2023-07-25 |
| First published | 2016-02-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 41.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | Thomas Conner |
| Maintainers | kinvey, dimofeev, tsakata1 |
| Keywords | Kinvey, JavaScript, Angular |

## Links

- npm: https://www.npmjs.com/package/kinvey-angular-sdk
- Repository: https://github.com/Kinvey/js-sdk
- Homepage: https://github.com/Kinvey/js-sdk/tree/master/packages/angular-sdk
- Issues: https://github.com/Kinvey/js-sdk/issues
- npm.io page: https://npm.io/package/kinvey-angular-sdk

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) 2.5.3
- [kinvey-html5-sdk](https://npm.io/package/kinvey-html5-sdk.md) 9.0.0

## Recent versions

- 9.0.0 (latest) — 2023-07-25
- 9.0.0-angular-12-alpha.1 (dev) — 2023-07-21
- 3.13.0-next.39 (next) — 2019-04-30
- 3.10.1-beta.1 (beta) — 2018-03-16
- 3.4.3-rc.1 (rc) — 2017-03-17
- 8.0.0 — 2022-07-15
- 7.0.3 — 2022-07-14
- 5.1.4 — 2022-06-18
- 5.1.2 — 2022-05-26
- 7.0.2 — 2022-04-28
- 7.0.1 — 2022-04-27
- 7.0.0 — 2021-10-25
- 6.0.0 — 2021-07-30
- 5.1.1 — 2021-04-12
- 5.1.0 — 2021-04-08
- … 112 more at https://npm.io/package/kinvey-angular-sdk/versions

## README

# Kinvey Angular SDK

## Installation

From the command prompt go to your app's root folder and execute:

```bash
npm i kinvey-angular-sdk@next
```

## Usage
Import the `KinveyModule` in your `app.module.ts` like this to initialize the SDK:

```js
import { NgModule } from '@angular/core';
import { KinveyModule } from 'kinvey-angular-sdk';

@NgModule({
  imports: [
    KinveyModule.init({
      appKey: '<yourAppKey>',
      appSecret: '<yourAppSecret>'
    })
  ]
})
export class AppModule { }
```

Then you can use dependency injection to inject a Kinvey service in your module like this:

```js
import { Component } from '@angular/core';
import { UserService } from 'kinvey-angular-sdk';

@Component()
export class AppComponent {
  constructor(private userService: UserService) {}

  async login() {
    try {
      const user = await this.userService.login('<username>', '<password>');
      console.log(user);
    } catch (error) {
      console.log(error);
    }
  }
}
```

The following services are available to use with dependency injection:

- `DataStoreService`
- `EndpointService`
- `FilesService`
- `PingService`
- `UserService`

## Build

If you would like to build the SDK yourself, clone the monorepo, then:
- `npm i`
- `npm run build`

You can then install the SDK build by running `npm i /<localpath>/packages/angular-sdk`

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