Skip to content

Commit 4073fa0

Browse files
fwielstraBrocco
authored andcommitted
fix(@angular/cli): Make generated inline template conform to test case
The generated app component spec checks for the string "Welcome to {{title}}!!", which is only output by the generated `app.component.htm`l file, not the generated inline template in `app.component.ts` when the `--inline-template` option is passed to the `ng new` command. This causes a test failure when generating a new app with `--inline-template`.
1 parent 3927f93 commit 4073fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
44
selector: '<%= prefix %>-root',<% if (inlineTemplate) { %>
55
template: `
66
<h1>
7-
{{title}}
7+
Welcome to {{title}}!!
88
</h1><% if (routing) { %>
99
<router-outlet></router-outlet><% } %>
1010
`,<% } else { %>

0 commit comments

Comments
 (0)