Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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
}                                                       
Comment

utiliser les données passees a un modal dans son propre composant en angular

export class ModalComponent { 

 passedData: typeOfData;     //declare it!

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

//rest of the ModalComponent 
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: iframe set value on input outside js 
Javascript :: selected css based on route react 
Javascript :: what is download api javascript 
Javascript :: how to install reveal.js from node 
Javascript :: yellow fever mosquities 
Javascript :: one-page web app that requires simple style work. using html, css,javascript and jquery 
Javascript :: test 
Javascript :: left_field in jsgrid 
Javascript :: html working with JSON data 
Javascript :: how to render file vue template in javascript with gulp 
Javascript :: unable to save shipping information. please check input data. magento 2 
Javascript :: why does my react project dosent have any class 
Javascript :: Angular UI datepicker is getting wrong date 
Javascript :: react cam filters 
Javascript :: createnodefield 
Javascript :: AWS SDK for javascript assumerole with proxy 
Javascript :: extendscript unzip file 
Javascript :: const data = event.currentTarget.value 
Javascript :: int cating javascript 
Javascript :: how to create response time router node js 
Javascript :: passing the href in ajax call 
Javascript :: tableau js api 
Javascript :: password textInput not working on android 
Javascript :: what does js stand for 
Javascript :: how to pronounce psychological 
Javascript :: alaa 201 exam 
Javascript :: id condition with ngfor in angular 10 
Javascript :: angularjs fractionSize with dot 
Javascript :: jquery.validate.unobtrusive dynamic content 
Javascript :: how to use yes no statement with alert in tampermonkey 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =