angular-hint

WIP: run-time hinting for AngularJS applications

Angular Core Dependency: ^1.6.3

Module License: Apache-2.0

Added by: Sam Deering

GitHub

Repository

angular/angular-hint

Stats

Stars: 359

Watchers: 359

Forks: 36

Author

Angular
Angular

Module Description

Angular Hint Build Status Code Climate

Runtime hinting for AngularJS.

Usage

Add <script src="hint.js"></script> to your app's index.html immediately after the angular.js script.

This will load the set of AngularHint modules. Now you are set to use the ng-hint directive.

Including the ng-hint directive with no parameters will install all the AngularHint modules.

Example:

<!doctype html>
<html ng-app="sample" ng-hint>
  ...
  <script src="../../bower_components/angular/angular.js"></script>
  <script src="../../dist/hint.js"></script>
  ...
</html>

For more fine-grained hints, you can use ng-hint-include to include certain AngularHint modules or ng-hint-exclude to exclude certain AngularHint modules.

Example:

<!doctype html>
<html ng-app="sample" ng-hint-include="controllers dom">
  ...
  <script src="../../bower_components/angular/angular.js"></script>
  <script src="../../dist/hint.js"></script>
  ...
</html>
<!doctype html>
<html ng-app="sample" ng-hint-exclude="modules">
  ...
  <script src="../../bower_components/angular/angular.js"></script>
  <script src="../../dist/hint.js"></script>
  ...
</html>

Building

$ npm install
$ npm run build

##Example In the example directory, you can find a sample application that appears superficially correct but violates many Angular best practices. When AngularHint is in operation it produces hints for correcting the sample application. In the correctExample directory there is an improved version of the sample application.

See Also

AngularHint is composed of several small modules that you may want to use individually:

AngularHint uses AngularHintLog to provide logging functionality.

Interested in Contributing?

See the Contributing Guidelines

License

Apache 2.0

Module stats last updated: 2017-09-16 16:00:03

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!