# babel-plugin-ng-annotate

> Babel Plugin for AngularJS dependency injection annotations.

Latest version **0.3.2** (published 2016-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-ng-annotate
pnpm add babel-plugin-ng-annotate
yarn add babel-plugin-ng-annotate
bun add babel-plugin-ng-annotate
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2016-04-01 |
| First published | 2015-08-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Maciej Chmielarski |
| Maintainers | mchmielarski |
| Keywords | babel, babel-plugin, angular, annotate |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-ng-annotate
- Repository: https://github.com/mchmielarski/babel-plugin-ng-annotate
- Homepage: https://github.com/mchmielarski/babel-plugin-ng-annotate#readme
- Issues: https://github.com/mchmielarski/babel-plugin-ng-annotate/issues
- npm.io page: https://npm.io/package/babel-plugin-ng-annotate

## Dependencies (4)

- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.3.13
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.6.0
- [babel-plugin-syntax-decorators](https://npm.io/package/babel-plugin-syntax-decorators.md) ^6.5.0
- [babel-plugin-transform-class-properties](https://npm.io/package/babel-plugin-transform-class-properties.md) ^6.6.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.3.2 (latest) — 2016-04-01
- 0.3.1 — 2016-03-17
- 0.3.0 — 2016-03-13
- 0.2.3 — 2015-12-26
- 0.2.2 — 2015-12-16
- 0.2.1 — 2015-12-13
- 0.2.0 — 2015-12-13
- 0.1.1 — 2015-08-09
- 0.1.0 — 2015-08-09

## README

# babel-plugin-ng-annotate - babel 6.x

## How to install

```
$ npm install --save-dev babel-plugin-ng-annotate
```

Note: this library depends on the [syntax decorators](https://www.npmjs.com/package/babel-plugin-syntax-decorators) plugin for parsing. Simply `$ npm install --save-dev babel-plugin-syntax-decorators` and follow the setup instructions below.

## How to setup

#### .babelrc
```js
{
  "presets": ["es2015"],
  "plugins": ["syntax-decorators", "ng-annotate"]
}
```


## How to use

```js
@Inject('service1', 'service2', 'service3')
class MyController {

    constructor() {
        this.service1();
    }

    method() {
        this.service2();
    }

    anotherMethod() {
        this.service3();
    }
}

angular.controller('MyController', MyController);
```

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