diff --git a/packages/compiler/src/identifiers.ts b/packages/compiler/src/identifiers.ts index ab4c3f2a32..dd2b88f603 100644 --- a/packages/compiler/src/identifiers.ts +++ b/packages/compiler/src/identifiers.ts @@ -92,7 +92,7 @@ export class Identifiers { name: 'ɵinlineInterpolate', moduleName: CORE, }; - static interpolate: o.ExternalReference = {name: 'ɵɵinterpolate', moduleName: CORE}; + static interpolate: o.ExternalReference = {name: 'ɵinterpolate', moduleName: CORE}; static EMPTY_ARRAY: o.ExternalReference = {name: 'ɵEMPTY_ARRAY', moduleName: CORE}; static EMPTY_MAP: o.ExternalReference = {name: 'ɵEMPTY_MAP', moduleName: CORE}; static Renderer: o.ExternalReference = {name: 'Renderer', moduleName: CORE}; diff --git a/packages/core/test/acceptance/properties_spec.ts b/packages/core/test/acceptance/properties_spec.ts index 3f1cb66f17..d7fa008672 100644 --- a/packages/core/test/acceptance/properties_spec.ts +++ b/packages/core/test/acceptance/properties_spec.ts @@ -212,4 +212,22 @@ describe('property instructions', () => { expect(img.src.indexOf('unsafe:')).toBe(0); }); + + it('should handle interpolations with 10+ values', () => { + @Component({ + selector: 'app-comp', + template: ` + link2` + }) + class AppComp { + } + + TestBed.configureTestingModule({declarations: [AppComp]}); + const fixture = TestBed.createComponent(AppComp); + fixture.detectChanges(); + const anchor = fixture.debugElement.query(By.css('a')).nativeElement; + expect(anchor.getAttribute('href')) + .toEqual( + `http://g.com/?one=1&two=2&three=3&four=4&five=5&six=6&seven=7&eight=8&nine=9&ten=10`); + }); });