;
+
+ constructor(
+ public dialog: MdDialog,
+ public viewContainerRef: ViewContainerRef) { }
+
+ open() {
+ let config = new MdDialogConfig();
+ config.viewContainerRef = this.viewContainerRef;
+
+ this.dialog.open(JazzDialog, config).then(ref => {
+ this.dialogRef = ref;
+ });
+ }
+}
+
+
+@Component({
+ selector: 'demo-jazz-dialog',
+ template: `It's Jazz!
`
+})
+export class JazzDialog { }
diff --git a/src/demo-app/portal/portal-demo.ts b/src/demo-app/portal/portal-demo.ts
index 7006da54d75a..6b274dce23c9 100644
--- a/src/demo-app/portal/portal-demo.ts
+++ b/src/demo-app/portal/portal-demo.ts
@@ -39,4 +39,4 @@ export class PortalDemo {
selector: 'science-joke',
template: ` 100 kilopascals go into a bar.
`
})
-class ScienceJoke { }
+export class ScienceJoke { }
diff --git a/src/demo-app/system-config.ts b/src/demo-app/system-config.ts
index bb7efe92848b..d15414670154 100644
--- a/src/demo-app/system-config.ts
+++ b/src/demo-app/system-config.ts
@@ -6,6 +6,7 @@ const components = [
'button',
'card',
'checkbox',
+ 'dialog',
'grid-list',
'icon',
'input',