This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
public/docs/_examples/toh-1/ts Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ export class Hero {
1313 template :`
1414 <h1>{{title}}</h1>
1515 <h2>{{hero.name}} details!</h2>
16- <div><label>id: </label>{{hero.id}}</div>
16+ <dl>
17+ <dt>id:</dt>
18+ <dd>{{hero.id}}</dd>
19+ </dl>
1720 <div>
18- <label>name: </label>
19- <input [(ngModel)]="hero.name" placeholder="name">
21+ <label>name:
22+ <input [(ngModel)]="hero.name" placeholder="name">
23+ </label>
2024 </div>
2125 `
2226} )
Original file line number Diff line number Diff line change 1+ body , input [text ], button {
2+ color : # 5E5E5E ;
3+ font-family : Cambria, Georgia;
4+ }
5+
6+ dt {
7+ float : left;
8+ clear : left;
9+ }
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
2- < html >
2+ < html lang =" en-US " >
33 < head >
44 < 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 ">
8+ < link rel ="stylesheet " href ="demo.css ">
89
910 <!-- Polyfill(s) for older browsers -->
1011 < script src ="node_modules/core-js/client/shim.min.js "> </ script >
You can’t perform that action at this time.
0 commit comments