This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree 3 files changed +18
-4
lines changed
public/docs/_examples/toh-1/ts
3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ export class Hero {
13
13
template :`
14
14
<h1>{{title}}</h1>
15
15
<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>
17
20
<div>
18
- <label>name: </label>
19
- <input [(ngModel)]="hero.name" placeholder="name">
21
+ <label>name:
22
+ <input [(ngModel)]="hero.name" placeholder="name">
23
+ </label>
20
24
</div>
21
25
`
22
26
} )
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 1
1
<!DOCTYPE html>
2
- < html >
2
+ < html lang =" en-US " >
3
3
< head >
4
4
< title > Angular 2 Tour of Heroes</ title >
5
5
< meta charset ="UTF-8 ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
7
< link rel ="stylesheet " href ="styles.css ">
8
+ < link rel ="stylesheet " href ="demo.css ">
8
9
9
10
<!-- Polyfill(s) for older browsers -->
10
11
< script src ="node_modules/core-js/client/shim.min.js "> </ script >
You can’t perform that action at this time.
0 commit comments