Angular · Junior · Question 40 of 75

What does effect() do?

Explanation

Effects run at least once and then whenever their dependencies change. They are for side effects; derived values should use computed().

Further reading

Problem with a question

Angular · Junior · question 40

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