mgechev / angularjs-style-guide

📚 Community-driven set of best practices for AngularJS application development

Home Page:https://mgechev.github.io/angularjs-style-guide/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

there may be a mispell

chbro opened this issue · comments

In order to prevent problems with minification, you can automatically generate the array definition syntax from the standard one using tools like ng-annotate (and grunt task grunt-ng-annotate).

Another alternative will be to use $inject like:

angular
.module('app')
.controller('HomepageCtrl', Homepage);

HomepageCtrl.$inject = ['$log', '$http', 'ngRoute'];

function HomepageCtrl($log, $http, ngRoute) {
// ...
}

Would you open a PR with the fix?

It should be HomepageCtrl not Homepage.

having been fixed in 3447cf4, this should be closed I guess! :)