From b8acc48fd3764fad74b9a53a9eb5ab91522a4eb0 Mon Sep 17 00:00:00 2001 From: Freek Wielstra Date: Thu, 15 Jun 2017 11:52:10 +0200 Subject: [PATCH] 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`. --- .../cli/blueprints/ng/files/__path__/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.ts b/packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.ts index b047b38a8947..e27843c1c26b 100644 --- a/packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.ts +++ b/packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.ts @@ -4,7 +4,7 @@ import { Component } from '@angular/core'; selector: '<%= prefix %>-root',<% if (inlineTemplate) { %> template: `

- {{title}} + Welcome to {{title}}!!

<% if (routing) { %> <% } %> `,<% } else { %>