The sample app for Angular2 Material has a dialog that returns a string value which is the message the user has written. But what if I want to prompt the user for more information than just a message?
In other words, I can't figure out how to make a form that behaves like a dialog when using Angular2 Material.
This is the sample app I'm referreing to: https://github.com/jelbourn/material2-app
In https://github.com/jelbourn/material2-app/blob/master/src/app/app.component.ts:
@Component({
template: `
<p>This is a dialog</p>
<p>
<label>
This is a text box inside of a dialog.
<input #dialogInput>
</label>
</p>
<p> <button md-button **(click)="dialogRef.close(dialogInput.value)">CLOSE</button> </p>**
`,
})
export class DialogContent {
constructor(@Optional() public dialogRef: MdDialogRef<DialogContent>) { }
As you can see,is the dialogRef.close(dialogInput.value) only taking one value. So how to create input that takes more values?
inputin the dialog which you can grab after it's closed?