# angular-hint-controllers

> hint module for controllers best practices

Latest version **0.7.1** (published 2014-12-11) · apache 2 license · 0 weekly downloads

## Install

```sh
npm install angular-hint-controllers
pnpm add angular-hint-controllers
yarn add angular-hint-controllers
bun add angular-hint-controllers
```

## 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.7.1 |
| Published | 2014-12-11 |
| First published | 2014-07-22 |
| Weekly downloads | 0 |
| License | apache 2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ealtenho |
| Maintainers | ealtenhof, btford, angularcore |

## Links

- npm: https://www.npmjs.com/package/angular-hint-controllers
- Repository: https://github.com/angular/angular-hint-controllers
- Issues: https://github.com/angular/angular-hint-controllers/issues
- npm.io page: https://npm.io/package/angular-hint-controllers

## Dependencies (7)

- [gulp](https://npm.io/package/gulp.md) ^3.8.5
- [watchify](https://npm.io/package/watchify.md) ^0.10.2
- [karma-bro](https://npm.io/package/karma-bro.md) ^0.6.0
- [browserify](https://npm.io/package/browserify.md) ^4.2.0
- [karma-coverage](https://npm.io/package/karma-coverage.md) ^0.2.4
- [angular-hint-log](https://npm.io/package/angular-hint-log.md) >=0.4.2
- [karma-sauce-launcher](https://npm.io/package/karma-sauce-launcher.md) ^0.2.9

## Recent versions

- 0.7.1 (latest) — 2014-12-11
- 0.7.0 — 2014-12-11
- 0.6.1 — 2014-12-10
- 0.6.0 — 2014-12-09
- 0.5.4 — 2014-08-07
- 0.5.3 — 2014-08-06
- 0.5.2 — 2014-08-06
- 0.5.1 — 2014-08-06
- 0.5.0 — 2014-08-04
- 0.4.0 — 2014-07-31
- 0.3.0 — 2014-07-30
- 0.2.0 — 2014-07-28
- 0.1.0 — 2014-07-23
- 0.0.0 — 2014-07-22

## README

# Angular Hint Controllers [![Build Status](https://travis-ci.org/angular/angular-hint-controllers.svg?branch=master)](https://travis-ci.org/angular/angular-hint-controllers) [![Code Climate](https://codeclimate.com/github/angular/angular-hint-controllers/badges/gpa.svg)](https://codeclimate.com/github/angular/angular-hint-controllers)

This hinting module is part of the overall tool [angular-hint](https://github.com/angular/angular-hint)
that provides advice about AngularJS best practices. Loading this module will provide warnings specific
to AngularJS controllers.

## Usage

Install the [angular-hint NPM module](https://www.npmjs.org/package/angular-hint)
and use `ng-hint` or `ng-hint-include="controllers"` to
enable angular-hint-controllers.

Further installation information is available on the
[main angular-hint repository](https://github.com/angular/angular-hint#usage).


## Features

1. Warns About Use of Global Controllers
  **Global Controllers are Deprecated in Angular 1.3.0**

  Angular controllers should not be globally registered. They should be
  registered on modules. For instance:

  ```javascript
  angular.module('myApp', []).controller(function() {});
  ```

2. Hints About Best Practices for Controller Naming

  Angular controller names should begin with a capital letter and end with -Controller.

  ```javascript
  angular.module('sampleApp', []).controller('SampleController', function() {});
  ```

## Contributing

We'd love to get your help! See the
[Contributing Guidelines](https://github.com/angular/angular-hint/blob/master/CONTRIBUTING.md)
to see how.

## License

Apache 2.0

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