diff --git a/packages/schematics/angular/application/other-files/app.component.spec.ts b/packages/schematics/angular/application/other-files/app.component.spec.ts index df4bc18812..b21e40897e 100644 --- a/packages/schematics/angular/application/other-files/app.component.spec.ts +++ b/packages/schematics/angular/application/other-files/app.component.spec.ts @@ -17,10 +17,10 @@ describe('AppComponent', () => { const app = fixture.debugElement.componentInstance; expect(app).toBeTruthy(); })); - it(`should have as title '<%= prefix %>'`, async(() => { + it(`should have as title '<%= name %>'`, async(() => { const fixture = TestBed.createComponent(AppComponent); const app = fixture.debugElement.componentInstance; - expect(app.title).toEqual('<%= prefix %>'); + expect(app.title).toEqual('<%= name %>'); })); it('should render title in a h1 tag', async(() => { const fixture = TestBed.createComponent(AppComponent); diff --git a/packages/schematics/angular/application/other-files/app.component.ts b/packages/schematics/angular/application/other-files/app.component.ts index bf46b22455..c9be35dfcf 100644 --- a/packages/schematics/angular/application/other-files/app.component.ts +++ b/packages/schematics/angular/application/other-files/app.component.ts @@ -31,5 +31,5 @@ import { Component } from '@angular/core'; styleUrls: ['./app.component.<%= styleext %>']<% } %> }) export class AppComponent { - title = '<%= prefix %>'; + title = '<%= name %>'; }