From .component() to @Component
summary
Shows concrete migrations from Angular 1.5 .component() to Angular 2 @Component using ES6 classes, live demos that work, and a small chat example with stateless/stateful/rooted components. Demonstrates one-way data flow replacing two-way binding, lifecycle hooks onInit/onChanges with cloning via Object.assign/angular.copy and a polyfill that backports .component to 1.3–1.5. Implements callbacks with & and Angular 2 EventEmitter, measures a 1–2 minute refactor path and shows the child → parent event roundtrip reliably firing on submit.
AI-written summary · about
chapters (6)
- 0:00Start
- 21:30DIRECTIVES: WHAT NOT TO USE
- 29:22STATEFUL COMPONENT
- 31:56PROPERTY BINDING
- 35:14STATELESS COMPONENT
- 38:22ROUTED COMPONENTS
related talks
43mUsing Components in Angular 1.5
18mAngular 1.3 meets Angular 2.0
47mTaking over the web platform with Angular 2
29mThe Angular Renaissance
36mAngular Rebooted: Components Everywhere
47mAngular2 the New Kid on the Block
44mThe Future of Angular: Faster, Lighter, Stronger
15mUsing Angular 2 Components in a Non Angular app
