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.
- 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
});
- 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() {});