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