sdn: the productive developer guide to angular 2

24
The Productive Developer guide to Angular 2 Maurice de Beijer @mauricedb ABL – The Problem Solver

Upload: maurice-beijer

Post on 08-Feb-2017

224 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: SDN: The productive developer guide to Angular 2

The Productive Developer guide to

Angular 2

Maurice de Beijer@mauricedb

ABL – The Problem Solver

Page 2: SDN: The productive developer guide to Angular 2

Who am I?• Maurice de Beijer• The Problem Solver• Microsoft Azure MVP• Freelance developer/instructor• Twitter: @mauricedb• Web: http://www.TheProblemSolver.nl• E-mail: [email protected]

Page 3: SDN: The productive developer guide to Angular 2

Looking back

Page 4: SDN: The productive developer guide to Angular 2

Angular 1 is very popular

Page 5: SDN: The productive developer guide to Angular 2

Angular 2 !== Angular 1

1

Page 6: SDN: The productive developer guide to Angular 2

When is Angular 2 done?

Page 7: SDN: The productive developer guide to Angular 2

opinionatedAngular is very

Page 8: SDN: The productive developer guide to Angular 2

React Starter Project

Page 9: SDN: The productive developer guide to Angular 2

Angular loves TypeScript

Page 10: SDN: The productive developer guide to Angular 2

Use the Angular CLI• Generate code• Build/run the application• Run tests• Check for errors

Page 11: SDN: The productive developer guide to Angular 2

Angular style guide• Lots of recommendations• Pars can be automatically checked with Codelyzer

Page 12: SDN: The productive developer guide to Angular 2

Codelyzer• Included in Angular CLI

Page 13: SDN: The productive developer guide to Angular 2

Building blocks of an Angular 2 application• Modules• Components• Templates• Data binding• Directives• Services• Routing• Dependency

injection

Page 14: SDN: The productive developer guide to Angular 2

• New in RC 5

Modules

Page 15: SDN: The productive developer guide to Angular 2

Angular 2 main module

Page 16: SDN: The productive developer guide to Angular 2

• Main building block of the user interface• Lifetime methods

Components

Page 17: SDN: The productive developer guide to Angular 2

• Define the visual aspect of a component• Either inline or a URL pointing to a separate file

Templates

Page 18: SDN: The productive developer guide to Angular 2

Data binding

Page 19: SDN: The productive developer guide to Angular 2

• Add non visual behavior to DOM elements

Directives

Page 20: SDN: The productive developer guide to Angular 2

Services• All other application code• Lots of predefined services

Page 21: SDN: The productive developer guide to Angular 2

• Used to inject requirements into components, services etc• Enables for a much better unit testing strategy

Dependency injection

Page 22: SDN: The productive developer guide to Angular 2

HTTP

Page 23: SDN: The productive developer guide to Angular 2

RxJS

Page 24: SDN: The productive developer guide to Angular 2

25Maurice de Beijer - @mauricedb