1👍
Your click handler needs to do 2 things: Set the album and show the dialog.
- add selectedAlbum:null to your data
- to open the dialog on click, set selectedAlbum = album
- set the dialog model to !!selectedAlbum, to only show when album is set
- use selectedAlbum instead of album in your dialog
- To close set selectedAlbum to null
Source:stackexchange.com