andrey-skl / ng-annotate-loader

Webpack loader to annotate angular applications
MIT License
120 stars 28 forks source link

Does not annotate when name is variable #44

Open moander opened 6 years ago

moander commented 6 years ago
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) {}]);