Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 75a87ff

Browse files
beemanBrocco
authored andcommitted
feat(@schematics/angular): use application name as title in AppComponent
1 parent c2d39ae commit 75a87ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/schematics/angular/application/other-files/app.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ describe('AppComponent', () => {
1717
const app = fixture.debugElement.componentInstance;
1818
expect(app).toBeTruthy();
1919
}));
20-
it(`should have as title '<%= prefix %>'`, async(() => {
20+
it(`should have as title '<%= name %>'`, async(() => {
2121
const fixture = TestBed.createComponent(AppComponent);
2222
const app = fixture.debugElement.componentInstance;
23-
expect(app.title).toEqual('<%= prefix %>');
23+
expect(app.title).toEqual('<%= name %>');
2424
}));
2525
it('should render title in a h1 tag', async(() => {
2626
const fixture = TestBed.createComponent(AppComponent);

packages/schematics/angular/application/other-files/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ import { Component } from '@angular/core';
3131
styleUrls: ['./app.component.<%= styleext %>']<% } %>
3232
})
3333
export class AppComponent {
34-
title = '<%= prefix %>';
34+
title = '<%= name %>';
3535
}

0 commit comments

Comments
 (0)