Skip to content

Commit 1c86f97

Browse files
committed
feat(@angular/cli): updating landing page
1 parent 4580088 commit 1c86f97

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
<h1>
2-
{{title}}
3-
</h1><% if (routing) { %>
1+
<div style="text-align:center">
2+
<h1>
3+
Welcome to {{title}}!!
4+
</h1>
5+
<img width="300" src="https://angular.io/resources/images/logos/angular/angular.svg" />
6+
</div>
7+
<h2>Here are some links to help you start: </h2>
8+
<ul>
9+
<li>
10+
<h2><a target="_blank" href="https://angular.io/docs/ts/latest/tutorial/">Tour of Heros</a></h2>
11+
</li>
12+
<li>
13+
<h2><a target="_blank" href="https://github.com/angular/angular-cli/wiki">CLI Documentation</a></h2>
14+
</li>
15+
<li>
16+
<h2><a target="_blank" href="http://angularjs.blogspot.ca/">Angular blog</a></h2>
17+
</li>
18+
</ul>
19+
<% if (routing) { %>
420
<router-outlet></router-outlet><% } %>

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ describe('AppComponent', () => {
2121
expect(app).toBeTruthy();
2222
}));
2323

24-
it(`should have as title '<%= prefix %> works!'`, async(() => {
24+
it(`should have as title '<%= prefix %>'`, async(() => {
2525
const fixture = TestBed.createComponent(AppComponent);
2626
const app = fixture.debugElement.componentInstance;
27-
expect(app.title).toEqual('<%= prefix %> works!');
27+
expect(app.title).toEqual('<%= prefix %>');
2828
}));
2929

3030
it('should render title in a h1 tag', async(() => {
3131
const fixture = TestBed.createComponent(AppComponent);
3232
fixture.detectChanges();
3333
const compiled = fixture.debugElement.nativeElement;
34-
expect(compiled.querySelector('h1').textContent).toContain('<%= prefix %> works!');
34+
expect(compiled.querySelector('h1').textContent).toContain('Welcome to <%= prefix %>!!');
3535
}));
3636
});

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ import { Component } from '@angular/core';
1313
styleUrls: ['./app.component.<%= styleExt %>']<% } %>
1414
})
1515
export class AppComponent {
16-
title = '<%= prefix %> works!';
16+
title = '<%= prefix %>';
1717
}

packages/@angular/cli/blueprints/ng/files/e2e/app.e2e-spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ describe('<%= htmlComponentName %> App', () => {
77
page = new <%= jsComponentName %>Page();
88
});
99

10-
it('should display message saying app works', () => {
10+
it('should display welcome message', () => {
1111
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('<%= prefix %> works!');
12+
expect(page.getParagraphText()).toEqual('Welcome to <%= prefix %>!!');
1313
});
1414
});

0 commit comments

Comments
 (0)