Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

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

wants to merge 1 commit into from

Conversation

filipesilva
Copy link
Contributor

@filipesilva filipesilva commented Mar 19, 2019

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

Sorry, something went wrong.

@filipesilva filipesilva requested a review from a team as a code owner 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

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 as a code owner March 19, 2019 10:25
@mary-poppins
Copy link

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

Copy link
Contributor

@IgorMinar IgorMinar left a comment

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

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.

None yet

5 participants