fix(compiler): Fix look up of entryComponents in AOT Summaries (#24892)

Previously, when you attempted to bootstrap a component that had a
router-outlet using ngsummaries, it would complain that the component
was not provided by any module even if it was. This commit fixes a
mistake (AFAICT) which caused the lookup of the component in the AOT
summaries to fail.

I believe this change is safe. I've run the affected tests within Google
and there were no breakages caused by this change.

PR Close #24892
This commit is contained in:
Matt Keller
2018-07-27 15:47:12 +01:00
committed by Igor Minar
parent 21009b06a1
commit 00d3666d95
6 changed files with 112 additions and 4 deletions

View File

@ -196,7 +196,7 @@ export class JitCompiler {
}
});
localModuleMeta.entryComponents.forEach((entryComponentType) => {
if (!this.hasAotSummary(entryComponentType.componentType.reference)) {
if (!this.hasAotSummary(entryComponentType.componentType)) {
const moduleMeta = moduleByJitDirective.get(entryComponentType.componentType) !;
templates.add(
this._createCompiledHostTemplate(entryComponentType.componentType, moduleMeta));