Angular 2 - A First Look

Michael Bromley

Why Angular 2?

  • Angular 1.x is > 5 years old
  • has problems with web components
  • has complex APIs
  • can have performance issues
  • can be hard to reason about

Goodbye

  • $scope
  • $apply(), digest loop
  • Controllers
  • Directive Definition Object
  • transclusion
  • angular.module system
  • jqLite (angular.element)
  • 2-way data binding
  • service vs. factory vs. provider vs. ...

Hello

  • classes (think controllerAs)
  • zone.js
  • classes
  • classes + annotations
  • shadow DOM
  • ES6 modules
  • plain DOM methods
  • explicit data flow
  • di.js

Let's Try It Out!

(live coding demo)

Resources

Thank You

www.michaelbromley.co.uk

@michlbrmly

Angular 2 - A First Look

By Michael Bromley

Angular 2 - A First Look

  • 2,058