I'm creating an ion-modal dialog, and the close button calls
this.modalCtrl.dismiss(my_data, 'close');
I added the 'close' string as a role because I've seen it in other parts of the code. It's optional, so I'm wondering, is that good practice? Is it just to comply to html roles? If that is only meant to pass some extra data back, I can't see what's so special about it and why I shouldn't just include it in 'my_data'.
Any thoughts?