Your custom dialog component is not present in any template (I assume) so you cannot use @Input and @Output.
In order to initialise variables of your dialog do something like this:
dialogRef: MdDialogRef<NodePropertiesDialog>;
constructor(public dialog: MdDialog) { }
openDialog() {
this.dialogRef = this.dialog.open(CustomDialog, config);
this.dialogRef.componentInstance.yourVariable = ... something ...;
this.dialogRef.afterClosed().subscribe(result => {
if (result !== undefined) {
... use the result ....
}
this.dialogRef = null;
});
}
The result returned in the after-close event can be set like below from within your custom dialog:
dialogRef.close(labelInput.value);
use a constructor like the following in your custom dialog
yourVariable: any;
constructor(public dialogRef: MdDialogRef<NodePropertiesDialog>) { }
Hope this help.