Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 892a1f7

Browse files
authored
Clean up examples and fix a few loading bugs (#55)
* Fix up examples, regen docs * Prevent examples from dropping to the bottom * Missing semi-colon
1 parent 2bd1f5c commit 892a1f7

File tree

204 files changed

+3862
-745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+3862
-745
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"@types/node": "^6.0.42",
4040
"angular-cli": "1.0.0-beta.24",
4141
"codelyzer": "1.0.0-beta.1",
42+
"highlight.js": "^9.9.0",
4243
"jasmine-core": "2.4.1",
4344
"jasmine-spec-reporter": "2.5.0",
4445
"karma": "1.2.0",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/** No CSS for this example */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/** No CSS for this example */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/** No CSS for this example */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/** No CSS for this example */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/** No CSS for this example */
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Hi, I'm a dialog!
1+
<p> Hi, I'm a dialog! </p>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/** No CSS for this example */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<button md-button (click)="openDialog()">Open dialog</button>

src/app/examples/dialog-overview/dialog-overview-example.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ import {MdDialog} from '@angular/material';
44

55
@Component({
66
selector: 'dialog-overview-example',
7-
template: '',
7+
templateUrl: './dialog-overview-example.html',
88
})
99
export class DialogOverviewExample {
10-
constructor(dialog: MdDialog) {
11-
dialog.open(DialogOverviewExampleDialog);
10+
constructor(public dialog: MdDialog) {}
11+
12+
openDialog() {
13+
this.dialog.open(DialogOverviewExampleDialog);
1214
}
1315
}
1416

0 commit comments

Comments
 (0)