Hi Riccardo,

Thanks for your response.

How Can I get the posted file here in this logic?


On Friday, 21 September 2018 14:01:53 UTC-4, Riccardo Sadocchi wrote:
>
> when you close the dialog use something like this 
> this.dialogRef.close('ok') and then use beforeClosed (not afterClosed):
>
> this.dialogRef.beforeClose()
>            .subscribe(actionType => {
>                switch (actionType) {
>                    case 'ok': {
>                        *//TODO: .....*
>                        return;
>                    }
>
>                     case 'cancel':
>                    default: {
>                         *//TODO: .....*
>                        return;
>                    }
>                }
>
>
>
> Il giorno venerdì 21 settembre 2018 16:55:47 UTC+2, Ravikumar Gunge ha 
> scritto:
>>
>> Hi Everyone,
>>
>> I'm able to show a pop up and able to read the form data on submit in 
>> Modal Pop up.
>>
>> But here in pop up I've a file upload control and on submit button click 
>> How to read the file.
>>
>> const dialogRef = this.dialog.open(DialogTemplateEditComponent,
>> { width: '750px', data: this.data.data });
>> dialogRef.afterClosed().subscribe(result => {
>> this.dialogOutput = result;
>> dialogRef.close();
>> });
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to