I am looking to develop a unique form element that functions in the same way as traditional form elements in terms of validation and value, but with an object as its value.
For instance, I want to create a "birthday element" that, when clicked, displays a popup with two selects for month and day (similar to a date picker). The value retrieved from this element should be in the format {month: 8, day: 21}. Furthermore, when submitted to the server, the data should be sent as multiple fields.
Other potential use cases include personName (firstName, lastName) and price (amount, currency).
How can I approach implementing such a feature in AngularJS?
The examples, tutorials, and documentation I have come across so far do not address this specific and complex task.