Skip to content

filters and controllers can be overwritten with undefined #2

@tilmanschweitzer

Description

@tilmanschweitzer

angular('myModule').controller('myController', function () {});
angular('myModule').controller('myController');

Second line throws no error, although the controller is overwritten with undefined. The second parameter in angular.Module.controller and angular.Module.filter is not optional and the controller/filter is overwritten.

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