# @ionic/platform-client-angular

> Ionic Platform Client for Angular 2

Latest version **0.0.8** (published 2016-06-09) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @ionic/platform-client-angular
pnpm add @ionic/platform-client-angular
yarn add @ionic/platform-client-angular
bun add @ionic/platform-client-angular
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2016-06-09 |
| First published | 2016-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29 |
| Author | Ionic |
| Maintainers | drifty, dwieeb, ionicjs |
| Keywords | Ionic, ionic, platform, web, client, angular |

## Links

- npm: https://www.npmjs.com/package/@ionic/platform-client-angular
- Repository: https://github.com/driftyco/ionic-platform-web-client-angular
- Homepage: https://github.com/driftyco/ionic-platform-web-client-angular#readme
- Issues: https://github.com/driftyco/ionic-platform-web-client-angular/issues
- npm.io page: https://npm.io/package/@ionic/platform-client-angular

## Dependencies (1)

- [@ionic/platform-client](https://npm.io/package/@ionic/platform-client.md) ^0.8.0-beta.6

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2016-06-09
- 0.0.7 — 2016-06-09
- 0.0.5 — 2016-06-09
- 0.0.4 — 2016-06-08
- 0.0.3 — 2016-06-08
- 0.0.2 — 2016-06-08

## README

# Ionic Platform Client for Angular 2

Angular 2 integration for the Ionic Platform in your app.

## Installation

```bash
$ npm install --save @ionic/platform-client-angular
```

## Usage

In your `app.ts` file, tell Angular about the platform providers by calling the imported `providers` function with a config and passing it to
[`ionicBootstrap`](http://ionicframework.com/docs/v2/api/config/Config/)
function. Then, use the injectable platform classes (`Auth`, `User`, `Push`, `Deploy`, etc.) in your app's classes just as you would any
other service class.

```javascript
import ...
import {Auth, User, providers} from '@ionic/platform-client-angular';

let platformConfig = {
  'core': {
    'app_id': 'YOUR-APP-ID'
  }
};

@Component({
  template: '<ion-nav [root]="rootPage"></ion-nav>'
})
export class MyApp {
  rootPage: any = TabsPage;

  constructor(platform: Platform, user: User) {
    platform.ready().then(() => {
      Auth.signup({'email': 'hi@ionic.io', 'password': 'puppies123'}).then(() => {
        // `user` is now the authenticated user
      }, (err) => {
        // something went wrong!
      });
    });
  }
}

ionicBootstrap(MyApp, providers(platformConfig), { /* Ionic Framework Config */ });
```

## Issues

This package wraps the [platform client](https://github.com/driftyco/ionic-platform-web-client) to
add Angular integration. Because of this, most issues should be reported in the
[platform client issues](https://github.com/driftyco/ionic-platform-web-client/issues) or the
[platform issues](https://github.com/driftyco/ionic-platform-issues/issues).

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