Skip to content

Does not annotate when name is variable #44

@moander

Description

@moander
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) {}]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions