Im making an angular js app for logging workouts.
When I hit the log workout button, a modal will pop up with input fields to log the workout.
What I would like to do is have a dropdown with designated workout types, and have the input fields below change depending on what type of workout I select.
For example:
If I choose "run" from the drop down, i would like these fields to appear: start time: end time: milage:
But if I were to select "weight", I would like these fields to appear instead: weight: number of sets: set 1: set 2:
You get the idea. How could I do this conditional hide / show input fields based on what workout I choose? Any good resources out there that explains this?