1

I'm learning Angular and in the tutorial I've been working with, there is this line of code:

@Input() product!: Product;

I'm wondering what the ! means in this context. Thanks in advance to all who respond.

R. Richards
  • 24,603
  • 10
  • 64
  • 64
Horton
  • 27
  • 2
  • 2
    not related to angular, but typescript: see https://stackoverflow.com/questions/42273853/in-typescript-what-is-the-exclamation-mark-bang-operator-when-dereferenci – TmTron Jul 26 '22 at 15:24
  • It means the same as in TypeScript. This property will never be null. – Prajwal Jul 26 '22 at 15:32

0 Answers0