Skip to content

fix(router): support NgFactory promise in loadChildren typings - #29392

Closed
filipesilva wants to merge 1 commit into
angular:masterfrom
filipesilva:loadchildren-factory-promise
Closed

filipesilva wants to merge 1 commit into
angular:masterfrom
filipesilva:loadchildren-factory-promise

Conversation

@filipesilva

@filipesilva filipesilva commented Mar 19, 2019 •

Copy link
Copy Markdown
Contributor

The router loadChildren property already supports a promise that returnes a NgModuleFactory, but the typings cause the compilation to fail.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The router loadChildren property already supports a promise that returns a NgModuleFactory, but the typings cause the compilation to fail.

What is the new behavior?

Typings contain the correct supported types.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@filipesilva
filipesilva requested a review from a team March 19, 2019 10:10
@filipesilva filipesilva added target: major This PR is targeted for the next major release action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 19, 2019
@mary-poppins

Copy link
Copy Markdown

You can preview b1a3cdb at https://pr29392-b1a3cdb.ngbuilds.io/.

The router loadChildren property already supports a promise that returns a NgModuleFactory, but the typings cause the compilation to fail.
@filipesilva
filipesilva requested a review from a team March 19, 2019 10:25
@mary-poppins

Copy link
Copy Markdown

You can preview 2e2a8aa at https://pr29392-2e2a8aa.ngbuilds.io/.

@IgorMinar IgorMinar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@IgorMinar IgorMinar added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 25, 2019
@mhevery mhevery closed this in 26a8c59 Mar 25, 2019
@filipesilva
filipesilva deleted the loadchildren-factory-promise branch March 26, 2019 11:45
wKoza pushed a commit to wKoza/angular that referenced this pull request Apr 17, 2019
…ar#29392)

The router loadChildren property already supports a promise that returns a NgModuleFactory, but the typings cause the compilation to fail.

PR Close angular#29392
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: router cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants