@@ -266,14 +266,16 @@ figure.image-display
266266 We aren't navigating to the component so it won't receive a hero `id`;
267267 As we noted above, that is the component's cue to create and present an empty hero.
268268
269- Add the following HTML to the `heroes.component.html`, just below the hero list (the `*ngFor`).
269+ Add the following HTML to `heroes.component.html`, just below the hero list (the `*ngFor`).
270270+ makeExample('toh-6/ts/app/heroes.component.html' , 'add-hero' , 'app/heroes.component.html (add)' )( format ="." )
271271:marked
272272 The user can *delete* an existing hero by clicking a delete button next to the hero's name.
273273
274274 Add the following HTML to the `heroes.component.html` right after the name in the repeated `<li>` tag:
275275+ makeExample('toh-6/ts/app/heroes.component.html' , 'delete-hero' , 'app/heroes.component.html (delete)' )( format ="." )
276-
276+ :marked
277+ Add the following CSS to the bottom of `heroes.component.css`.
278+ + makeExample('toh-6/ts/app/heroes.component.css' , 'delete-hero' , 'app/heroes.component.css (delete)' )( format ="." )
277279:marked
278280 Now let's fix-up the `HeroesComponent` to support the *add* and *delete* actions in the template.
279281 Let's start with *add*.
@@ -339,7 +341,6 @@ figure.image-display
339341 .file index.html
340342 .file package.json
341343 .file styles.css
342- .file sample.css
343344 .file systemjs.config.json
344345 .file tsconfig.json
345346 .file typings.json
@@ -361,6 +362,7 @@ figure.image-display
361362 ` toh-6/ts/app/app.component.ts,
362363 toh-6/ts/app/heroes.component.ts,
363364 toh-6/ts/app/heroes.component.html,
365+ toh-6/ts/app/heroes.component.css,
364366 toh-6/ts/app/hero-detail.component.ts,
365367 toh-6/ts/app/hero-detail.component.html,
366368 toh-6/ts/app/hero.service.ts` ,
0 commit comments