Programmer's Picnic LMS
Home
⭐ Milestone 06

Select Answer

Allow one option selection.

40% track progress

📂 Step 1 — Open the Project for This Track

Open this folder in VS Code or your editor:

tracks/angular/final-project/
Open Final Project Folder

📄 Step 2 — Files to Edit

For this track, these are the important files:

Start with the yellow file, then update the others only when the task asks you to.

🎯 Step 3 — Learning Objective

Students learn state and event handling.

🔨 Step 4 — Fully Defined Student Task

What to build

  • Add a selectedAnswer variable/state.
  • When an option is clicked/tapped, save that option.
  • Visually highlight the selected option.
  • Prevent accidental multiple visual selections.
  • Do not check correctness yet unless this milestone is combined with the next one.

Acceptance Criteria

  • Clicking an option highlights it.
  • Only one option is selected at a time.
  • The selected value is stored in code.
  • The app does not crash when options are clicked repeatedly.

What to submit to the teacher

  • Screenshot with selected option.
  • Explain where selected answer is stored.

Do not move ahead until

  • The project runs without errors.
  • You can explain which files changed.
  • The acceptance criteria above are satisfied.

▶ Step 5 — Run the Project

Use this command or method:

Create an Angular app, then copy the src files from tracks/angular/final-project/src/.
ng serve

✅ Step 6 — Checkpoint Output

KBC Quiz

Select Answer should now work.

A. Sample optionB. Sample optionC. Sample optionD. Sample option

🧠 Step 7 — Mini Quiz

  1. What exact feature did this milestone add?
  2. Which file changed the most and why?
  3. Which acceptance criterion proves the work is complete?

🆘 Full Code Fallback

👀 View / Copy Complete Help

Open this only after trying.

// Milestone 06: Select Answer
// Open: tracks/angular/final-project/
// Complete every item under "What to build".
// Test every item under "Acceptance Criteria".

🌐 GitHub Commit

After the milestone works, commit it:

git add .
git commit -m "Complete Angular milestone 06: Select Answer"
git push

🏆 Completion Checklist