Update tsconfig.json Now that Angular 2 and its dependencies are installed, we need to enable TypeScript’s experimental support for decorators
Moving to TypeScript Files At this point, you’re probably ready to start using TypeScript files. The first step is to rename one of your
Understanding private When a member is marked private, it cannot be accessed from outside of its containing class
Uglify First install Uglify. Since the point of Uglify is to mangle your code, we also need to install vinyl-buffer and gulp-sourcemaps to keep
Schema Schema can be found at: http://json.schemastore.org/tsconfig
Decorator Evaluation There is a well defined order to how decorators applied to various declarations inside of a class are applied:
// Type definitions for [~THE LIBRARY NAME~] [~OPTIONAL VERSION NUMBER~] // Project: [~THE PROJECT NAME~] // Definitions by: [~YOUR
Decorator Factories If we want to customize how a decorator is applied to a declaration, we can write a decorator factory. A Decorator Factory
Null- and undefined-aware types TypeScript has two special types, Null and Undefined, that have the values null and undefined
Inheritance In TypeScript, we can use common object-oriented patterns. Of course, one of the most fundamental patterns in class-based programming
Page 4 of 29