Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 738b550

Browse files
committed
examples(tutorial): misc fixes to issues from failed e2e
Misc fixes to problems with the tutorial examples, as detected by the new e2e tests. Now the toh-4 index.html is identical to those of the previous parts. Fixes #1609.
1 parent 825c416 commit 738b550

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

public/docs/_examples/toh-1/ts/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<script>
1818
System.import('app').catch(function(err){ console.error(err); });
1919
</script>
20+
</head>
2021

2122
<body>
2223
<my-app>Loading...</my-app>

public/docs/_examples/toh-2/ts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Angular 2 Tour of Heros</title>
4+
<title>Angular 2 Tour of Heroes</title>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<link rel="stylesheet" href="styles.css">

public/docs/_examples/toh-4/dart/web/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
<title>Angular 2 Tour of Heroes</title>
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<link rel="stylesheet" href="styles.css">
7+
48
<script defer src="main.dart" type="application/dart"></script>
59
<script defer src="packages/browser/dart.js"></script>
610
</head>

public/docs/_examples/toh-4/ts/app/app.component.1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ export class AppComponent implements OnInit {
3434
// #enddocregion heroes-prop
3535
selectedHero: Hero;
3636

37+
/*
3738
// #docregion new-service
3839
heroService = new HeroService(); // don't do this
3940
// #enddocregion new-service
41+
*/
4042
// #docregion ctor
4143
constructor(private heroService: HeroService) { }
4244
// #enddocregion ctor

0 commit comments

Comments
 (0)