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.
This commit is contained in:
parent
825c416f8a
commit
738b5509f8
|
@ -17,6 +17,7 @@
|
|||
<script>
|
||||
System.import('app').catch(function(err){ console.error(err); });
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<my-app>Loading...</my-app>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Angular 2 Tour of Heros</title>
|
||||
<title>Angular 2 Tour of Heroes</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Angular 2 Tour of Heroes</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
|
||||
<script defer src="main.dart" type="application/dart"></script>
|
||||
<script defer src="packages/browser/dart.js"></script>
|
||||
</head>
|
||||
|
|
|
@ -34,9 +34,11 @@ export class AppComponent implements OnInit {
|
|||
// #enddocregion heroes-prop
|
||||
selectedHero: Hero;
|
||||
|
||||
/*
|
||||
// #docregion new-service
|
||||
heroService = new HeroService(); // don't do this
|
||||
// #enddocregion new-service
|
||||
*/
|
||||
// #docregion ctor
|
||||
constructor(private heroService: HeroService) { }
|
||||
// #enddocregion ctor
|
||||
|
|
Loading…
Reference in New Issue