Chapter 2
Conquering Components and Directives
Section 1
Using Decorators to Build and Style a Simple Component
When writing an application component in TypeScript, there are several new paradigms that you must become familiar and comfortable with. - Note thatthe class definition is prefixed with an export keyword - Write your application in TypeScript andhave the member property definition outside the constructor - Move the member initialization process inside the class constructor