Angular · Junior · Question 27 of 75

Why can't a child change the value of a signal created by input()?

Explanation

One-way data flow keeps the ownership clear. If the child needs to change it, emit an output, or use model(), which creates a two-way bindable signal: <app-rating [(value)]="rating" />.

Further reading

Problem with a question

Angular · Junior · question 27

Test yourself

Take the Angular · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz