Click in order · Angular course · Module 8: Forms

Building a field error read

Build the expression that reads the 'required' error of the name field: form.get('name')?.errors?.['required']. Click the elements in order.

Items to click

  • ?.['required']
  • ?.errors
  • form
  • .get('name')

You can check the correct answer by solving this task in the CodeWorlds game.