Premium

Reusable Child Component with @Input/@Output (Two-way Binding)

By FrontendAtlas Editorial · Updated Nov 11, 2026

Challenge summary

Build a reusable Angular child component whose count and liked state the parent controls through two-way bindings.

What you'll practice

  • Declare the count and liked state as model signals the parent can bind both ways.
  • Report every plus, minus and Like press back to the parent state.
  • Show values the parent sets directly without extra wiring in the child.
  • Explain how a model signal maps to a matching input and output pair.

What Premium unlocks

Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion. It also runs as an Interview Pressure Mode, in rounds that add requirements the way an interviewer does.

Free related practice

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.

Premium is $24 a month or $99 a year, less in many countries.