Skip to content

Angular 1 router: arrow function #7913

@dpogue

Description

@dpogue

https://github.com/angular/angular/blob/master/modules/angular1_router/src/module_template.js#L99

This line remains as an arrow function when the angular_1_router.js file is generated, which breaks in several non-Chrome browsers. TypeScript isn't compiling it because this is a JS file, not a TS file.

It should be replaced with an ES5-friendly function() { return $injector.invoke(loader); }.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions