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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -