Skip to content

Commit

Permalink
fix(@angular/cli): Make generated inline template conform to test case
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
fwielstra authored and Brocco committed Jun 15, 2017
1 parent 10ec556 commit b8acc48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Component } from '@angular/core';
selector: '<%= prefix %>-root',<% if (inlineTemplate) { %>
template: `
<h1>
{{title}}
Welcome to {{title}}!!
</h1><% if (routing) { %>
<router-outlet></router-outlet><% } %>
`,<% } else { %>
Expand Down

0 comments on commit b8acc48

Please sign in to comment.