Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Abrir dialog angular materia

openDialog() {
   const dialogRef = this.dialog.open(DialogContentEditEducation, {data: 
   idEnviado});

   dialogRef.afterClosed().subscribe(data => {//data llegando de respuesta 
   al cerrar el modal});
 }
Comment

Abrir dialog angular material

import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
.
.
.
 constructor(
   public dialogo: MatDialogRef<TuDialogoComponent>,
   @Inject(MAT_DIALOG_DATA) public data: string
  ) { }
Comment

Abrir dialog angular material

openDialog() {
  const dialogRef = this.dialog.open(DialogContentEditEducation, {data: 
  idEnviado});
}
Comment

abrir dialog angular material

close(): void {
  this.dialogo.close(/data que quieres emitir al cerrar el modal/);
 }
Comment

PREVIOUS NEXT
Code Example
Javascript :: check if an array contains a number in javascript 
Javascript :: ant design charts 
Javascript :: javascript continue with for Loop 
Javascript :: pm2 config changes update environments 
Javascript :: postgres boolean column 
Javascript :: push object to json array 
Javascript :: js how to calculate factorial 
Javascript :: javascript on scroll change nav color 
Javascript :: body-parser is depreciated 
Javascript :: How to convert a canvas to an image javascript 
Javascript :: to do list in javascript append appendchild input value 
Javascript :: javascript objectentries 
Javascript :: moment clone 
Javascript :: circular queue implementation using js 
Javascript :: sum of all elements in array javascript 
Javascript :: js sleep 1 sec 
Javascript :: firebase messaging import script 
Javascript :: jest expect string to contain substring 
Javascript :: react convert excel to json 
Javascript :: array spread operator in javascript 
Javascript :: js stringify 
Javascript :: blur effect javascript 
Javascript :: upload and send file to axios multipart 
Javascript :: joi regex validate 
Javascript :: added font to react native 
Javascript :: foreach method of array in javascript 
Javascript :: How to blacklist words with discord.js 
Javascript :: get image src width and height 
Javascript :: how to check if the number inputed is number 
Javascript :: js style 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =