Skip to content

ealtenho/hint-controller

Repository files navigation

hint-controllers Build Status

This hinting module is part of the overall tool AngularHint that provides warnings about best practices. Loading this module will provide warnings to the console that have to do with the operation of the Angular controller.

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:

angular.module('controllerApp').controller(function(){
  //Do some behavior
});
  1. Hints About Best Practices for Controller Naming

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

angular.module('SampleApp', []).controller('SampleController', function() {});

About

hinting for Angular controller best practices

Resources

License

Stars

Watchers

Forks

Packages

No packages published