concept field in category angular

This is an excerpt from Manning's book Angular Development with Typescript, Second Edition.
Now the landing page of ngAuction has a more modern look, as shown earlier in figure 5.10. Not only does it look better than the version of ngAuction from chapter 3, but its controls (the search form, the menu) provide fast and animated response to the user’s actions. Try to place the focus in one of the search fields, and you’ll see how the field prompt moves to the top. The button search also shows a ripple effect.
Note the CSS class binding example on the last line. It conditionally applies the hasError CSS class to the element if the expression on the right side is true. If you used only c.invalid, the border would be highlighted as soon as the page was rendered; but that can confuse users, especially if the page has a lot of fields. Instead, you add one more condition: the field must be touched. Now the field is highlighted only after a user visits and leaves this field.