In the last blog post we looked at how to fire events and send data.
In this blog we will be looking at how to send complex data types (objects) via events.
Here is the snippet which demos that!
Here is the template file, it's pretty much straightforward. This is just going to fire the event because of the user input and from there the JavaScript is going to take care of the rest of it.
Just a heads up it's not details its just detail
Also, in an object when key and value are having the same naming convention, we can just use this notation.
This is the parent or containing component.
Here is the controller file in the parent component.