📜  utiliser les données passees a un modal dans son propre composant en angular - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:48.533000             🧑  作者: Mango

代码示例2
export class ModalComponent { 

 passedData: typeOfData;     //declare it!

 someFunction() {     //or some  lifecycle hook 
  console.log(this.passedData)  //and then, use it!
 }

//rest of the ModalComponent 
}