20
Getting Started with Angular 2 Slides: tinyurl.com/ng2-slides

Getting Started with Angular 2

  • Upload
    fitc

  • View
    6.843

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Getting Started with Angular 2

Getting Started with Angular 2

Slides: tinyurl.com/ng2-slides

Page 2: Getting Started with Angular 2
Page 3: Getting Started with Angular 2

Angular 2

Is Awesome

Page 4: Getting Started with Angular 2

Still in Alpha

Page 5: Getting Started with Angular 2

might seem like too much to learn

Page 6: Getting Started with Angular 2

Angular 2 is Based on:

○ ES6/TypeScript○ Module Loaders○ DOM○ Web Components○ Observables○ ZoneJS○ AngularJS 1.x

Page 7: Getting Started with Angular 2

Hello Worldhttp://plnkr.co/edit/fHjekGdnscbZGoPhbsE8?p=preview

Page 9: Getting Started with Angular 2
Page 10: Getting Started with Angular 2

Template Syntax / DOM

● No more jqLite● No more ng-click, ng-mousedown, ng-blur, etc.● No more ng-show, ng-hide, ng-disabled, etc.● Relies directly on the DOM

Page 12: Getting Started with Angular 2

ComponentsAngular 1.x: http://plnkr.co/edit/fZKUdNpN3k2joBVrXz5r?p=previewAngular 2.0: http://plnkr.co/edit/GA57df9esLI7MyPbyXjb?p=preview

Page 13: Getting Started with Angular 2

AngularJS 1.x Component: Best Practices

Page 14: Getting Started with Angular 2

Angular 1 to 2: Component

Page 15: Getting Started with Angular 2

Angular 1 Components Best Practices

Avoid

● $scope● $scope● $scope● The link function● $parse, $observe, $eval

Use

● Isolated Scope● ControllerAs● BindToController● ES6 classes

Page 17: Getting Started with Angular 2

Observableshttp://plnkr.co/edit/eOh0fJlx1OBsYCXd7uK9?p=preview

Page 19: Getting Started with Angular 2

Angular AMA3:45 - 4:30pm B-SIDE ROOM

Aysegul Yonet Nick Van Weerdenburg Rob McDiarmid