let name = 'NotWorking';
app.controller(name, function ($http) { });
app.controller('works', function ($http) { });
Result
var name = 'NotWorking';
// should have been annontated
app.controller(name, function ($http) {});
app.controller('works', ["$http", function ($http) {}]);
Result