Skip to content

Commit a97378e

Browse files
committed
chore(demos): add home route content and fix styles
1 parent ade0f86 commit a97378e

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/demo-app/demo-app.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@
2424
<i class="material-icons" (click)="start.open()">menu</i>
2525
<div class="demo-toolbar">
2626
<h1>Angular Material 2 Demos</h1>
27-
<button md-raised-button (click)="root.dir = (root.dir == 'rtl' ? 'ltr' : 'rtl')">
27+
<button md-button (click)="root.dir = (root.dir == 'rtl' ? 'ltr' : 'rtl')" title="Toggle between RTL and LTR">
2828
{{root.dir.toUpperCase()}}
2929
</button>
3030
</div>
3131
</md-toolbar>
3232

33-
3433
<div #root="$implicit" dir="ltr" class="demo-content">
3534
<router-outlet></router-outlet>
3635
</div>

src/demo-app/demo-app.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
}
1212

1313
md-toolbar {
14-
1514
i {
1615
padding: 20px;
1716
cursor: pointer;
@@ -22,6 +21,10 @@
2221
justify-content: space-between;
2322
width: 100%;
2423
}
24+
25+
button {
26+
color: white;
27+
}
2528
}
2629

2730
h1 {

src/demo-app/demo-app.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ import {GesturesDemo} from './gestures/gestures-demo';
2222

2323
@Component({
2424
selector: 'home',
25-
template: ''
25+
template: `
26+
<p>Welcome to the development demos for Angular Material 2!</p>
27+
<p>Open the sidenav to select a demo. </p>
28+
`
2629
})
2730
export class Home {}
2831

src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
56
<title>Material2</title>
67
<base href="/">
78
<script src="vendor/es6-shim/es6-shim.js"></script>

0 commit comments

Comments
 (0)