Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /