Constructor Parameter Properties and Property Accessors
Discover how TypeScript shorthand access modifiers simplify class property creation by applying them to constructor parameters.
Introduction to TypeScript shorthand access modifiers
TypeScript also introduces a shorthand version for access modifiers that can be applied to parameters in a constructor function.
As an example of this, consider the following code:
Get hands-on with 1200+ tech skills courses.