angular2 template - Create Dynamic Modal Angular 4 -


i have list of elements service, need send name , other properties modal onclick event every element, have code. enter image description here

onclick of item, pass items information showdialog method. in dialog display information passed follows:

<h2>{{this.profileselected}}</h2>  <p (click)="showdialog(item)"></p> 

in component create member variable profileselected store item clicked follows:

showdialog(item){     this.profileselected = item;     this.display=true; } 

Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -