Understanding the Object types
The Array types
The Function types
Defining classes
Using access modifiers
Defining interfaces
Interface inheritance
Implementing multiple interfaces
Further expressiveness with TypeScript decorators
Writing generic code by using type parameters
Using generic functions
Having multiple type parameters
Writing less verbose code with TypeScript's type inference
Best common type
Contextual type inference
Using ambient type definitions
Using predefined ambient type definitions
Custom ambient type definitions
Defining ts.d files
Summary
4. Getting Started with Angular 2 Components and Directives
The Hello world! application in Angular 2
Setting up our environment
Installing our project repository
Playing with Angular 2 and TypeScript
Digging into the index
Using Angular 2 directives
The ngFor directive
Improved semantics of the directives syntax
Declaring variables inside a template
Using syntax sugar in templates
Defining Angular 2 directives
Setting the directive's inputs
Understanding the directive's constructor
Better encapsulation of directives
Using Angular 2's built-in directives
Introducing the component's view encapsulation
Implementing the component's controllers
Handling user actions
Using a directives' inputs and outputs
Finding out directives' inputs and outputs
评论1
最新资源