Skip to content

Commit 858c776

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

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
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

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

24-
it(`should have as title '<%= prefix %> works!'`, async(() => {
24+
it(`should have as title 'Welcome to <%= 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('Welcome to <%= prefix %>!!');
2828
}));
2929

3030
it('should render title in a h1 tag', async(() => {

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)