Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

31
Angular 2

Transcript of Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Page 1: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Angular 2

Page 2: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

@SIMONA_COTIN

Page 3: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016
Page 4: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016
Page 5: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Components - base

Page 6: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Components - Input/Output properties

Page 7: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Components - providers

Page 8: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Components - template

Page 9: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Components - lifecycle

Page 10: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Components - self describing

A COMPONENT HAS WELL DEFINED API FOR INPUT AND OUTPUT PROPERTIES

Page 11: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Components - self describing

A COMPONENT CONFIGURES DEPENDENCY INJECTION

Page 12: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Components - self describing

A COMPONENT KNOWS HOW TO RENDER ITSELF

Page 13: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Components - self describing

A COMPONENT KNOWS HOW TO LISTEN TO ITS HOST ELEMENT

Page 14: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016
Page 15: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Change detection

“An Angular 2 application is a reactive system, with change detection being the core of it.”

Page 16: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Change detection

Page 17: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Change detection

Page 18: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Change detection

Page 19: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Change detection

Page 20: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Change detectionAn angular app is a

component tree

Each component has its own change detector

Data flows from top to bottom

Page 21: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Ahead-of-time compilation

FASTER INITIAL RENDER

TYPE CHECKING IN TEMPLATES

EFFECTIVE TREE SHAKING

Page 22: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

TOOLS & HELPERS - ANGULAR MATERIAL

Page 23: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

TOOLS & HELPERS - I18N

Page 24: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

TOOLS & HELPERS - ROUTER

Page 25: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

TOOLS & HELPERS - ANIMATIONS

Page 26: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

TOOLS & HELPERS - ANGULAR CLI

Page 27: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

TOOLS & HELPERS - PROTRACTOR

Page 28: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

TOOLS & HELPERS - ANGULAR AUGURY

Page 29: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

TOOLS & HELPERS - LANGUAGE SERVICES

Page 30: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

Demo

Page 31: Scaling applications using AngularJS and TypeScript - Simona Cotin - Codemotion Milan 2016

THANK YOU