Silver Challenge: Sighting Date
When creating and editing a sighting, add a
sightingDate
property to the controller and
an input that is bound to that property. Use either a basic
text input or input[type="date"]
to
capture the sighting date. Convert the date to an ISO8601 string
using moment and set the sighting property
sightingAt
with that date string.
Get Front-End Web Development: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.