Skip to content
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

fix(ivy): ensure module imports are instantiated before the module being declared #35172

Closed
wants to merge 1 commit into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Feb 5, 2020

No description provided.

@atscott atscott force-pushed the moduleOrder branch 2 times, most recently from 7798b8f to 5539ca6 Compare February 6, 2020 16:14
@@ -330,6 +326,9 @@ export class R3Injector {
}
}
}
// Track the InjectorType and add a provider for it.
Copy link
Member

Choose a reason for hiding this comment

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

Add a comment here about the ordering being important - recursing into children and then adding the injectortype to the set.

@@ -77,6 +77,25 @@ describe('NgModule', () => {
});
});

it('initializes the module imports before the module itself', () => {
Copy link
Member

Choose a reason for hiding this comment

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

This test is great, but it would be nice to have a simple r3_injector_spec test as well.

@atscott atscott force-pushed the moduleOrder branch 2 times, most recently from 791a4bb to 865f9ee Compare February 7, 2020 00:19
@atscott atscott added area: core Issues related to the framework runtime comp: ivy target: patch This PR is targeted for the next patch release labels Feb 7, 2020
@ngbot ngbot bot added this to the needsTriage milestone Feb 7, 2020
@atscott
Copy link
Contributor Author

atscott commented Feb 7, 2020

presubmit (failing tests passed in a rerun)

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Feb 7, 2020
mhevery pushed a commit that referenced this pull request Feb 7, 2020
@mhevery mhevery closed this in 0cbdd54 Feb 7, 2020
sonukapoor pushed a commit to sonukapoor/angular that referenced this pull request Feb 13, 2020
sonukapoor pushed a commit to sonukapoor/angular that referenced this pull request Feb 17, 2020
@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 Mar 9, 2020
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: core Issues related to the framework runtime cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants