utiliser les données passees a un modal dans son propre composant en angular
const modalRef = this.modalService.open(ModalComponent);
modalRef.componentInstance.passedData= this.dataToPass;
modalRef.result.then(result => {
//do something with result
} export class ModalComponent {
passedData: typeOfData; //declare it!
someFunction() { //or some lifecycle hook
console.log(this.passedData) //and then, use it!
}
//rest of the ModalComponent
}
Also in JavaScript:
- pass header in axios
- jquery scroll to top of div animate
- Convert JS date time to SQLSERVER datetime
- graphql file upload
- how to store textbox data while typing for chrome extension
- compare date and time in js
- fetch download blob file
- rotate a div using javascript
- js filter
- take a screen shot of a image within a div using js
- in which table our redux option values are save
- networkx check if node exists
- nodejs websocket tutorial
- mock sqs.sendMessage node js
- int to octal javascript
- jquery edit iframe content
- how to include in ejs
- how to get href value of anchor tag in jquery
- svelte reactive async
- webpack css not shoud be empty
- how to create an array in node js
- javascript reverse array without modifying
- readonly attribute in html by javascript
- django regular expression