Slide 1

Slide 1 text

Finding the Right Path from AngularJS to Angular

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

Upgrade Decision Tree

Slide 5

Slide 5 text

Your Code Your Team Upgrade Decision Tree

Slide 6

Slide 6 text

Sam Julien @samjulien samjulien.com Dev Advocate at Auth0

Slide 7

Slide 7 text

UpgradingAngularJS.com

Slide 8

Slide 8 text

GettingStartedInDevRel.com

Slide 9

Slide 9 text

Upgrade Decision Tree

Slide 10

Slide 10 text

Your Code Your Team Upgrade Decision Tree

Slide 11

Slide 11 text

Two Assumptions

Slide 12

Slide 12 text

2. You're using Angular. 1. You need to migrate.

Slide 13

Slide 13 text

2. You're using Angular. 1. You need to migrate.

Slide 14

Slide 14 text

Stable Insurance Noble Non-Profit

Slide 15

Slide 15 text

The Four Paths

Slide 16

Slide 16 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 17

Slide 17 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 18

Slide 18 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 19

Slide 19 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 20

Slide 20 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 21

Slide 21 text

Your Team

Slide 22

Slide 22 text

Size

Slide 23

Slide 23 text

Noble Stable 4 devs 2 medium apps Coordination No consulting 70 devs 8 big apps Autonomy Consulting

Slide 24

Slide 24 text

Capacity

Slide 25

Slide 25 text

Noble Stable Lots of control 30% to TD Burnout Zero control 10% to TD Shared Work

Slide 26

Slide 26 text

Experience

Slide 27

Slide 27 text

Expertise Years of Experience

Slide 28

Slide 28 text

Expertise Years of Experience

Slide 29

Slide 29 text

Noble Stable - 2 seniors, 1 mid, 1 junior - 1 Angular, 1 AngularJS, 2 C# - Wide range of experience - Mostly AngularJS devs

Slide 30

Slide 30 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 31

Slide 31 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 32

Slide 32 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 33

Slide 33 text

Your Code

Slide 34

Slide 34 text

Architecture

Slide 35

Slide 35 text

How modern is your AngularJS app?

Slide 36

Slide 36 text

angular.module("app").controller("customerDetailController", [ "$scope", "customer", "addressFactory", "orderService", function ($scope, customer, addressFactory, orderService) { $scope.title = "Customer Detail"; $scope.discountTemplate = "../templates/discount.html"; $scope.customer = customer; $scope.address = addressFactory.getFullAddress(customer); activate(); function activate() { $scope.orders = orderService.getOrdersByCustomer($scope.customer.id); $scope.orders.forEach(function (order) { order.orderDate = moment(order.orderDate).format("MM/DD/YYYY"); }); } }, ]);

Slide 37

Slide 37 text

angular.module("app").controller("customerDetailController", [ "$scope", "customer", "addressFactory", "orderService", function ($scope, customer, addressFactory, orderService) { $scope.title = "Customer Detail"; $scope.discountTemplate = "../templates/discount.html"; $scope.customer = customer; $scope.address = addressFactory.getFullAddress(customer); activate(); function activate() { $scope.orders = orderService.getOrdersByCustomer($scope.customer.id); $scope.orders.forEach(function (order) { order.orderDate = moment(order.orderDate).format("MM/DD/YYYY"); }); } }, ]);

Slide 38

Slide 38 text

Noble Stable Aligned with the style guide Components AngularJS 1.6 Lots of old practices 1.2-1.4 Shared libs

Slide 39

Slide 39 text

Build

Slide 40

Slide 40 text

Webpack or CLI? ES5/ES2015/TypeScript

Slide 41

Slide 41 text

Webpack or CLI? ES5/ES2015/TypeScript

Slide 42

Slide 42 text

Noble Stable Gulp ES2015 & Babel Standard Script tags and Grunt ES5 Very complex

Slide 43

Slide 43 text

Testing

Slide 44

Slide 44 text

Protractor vs Cypress Unit Testing

Slide 45

Slide 45 text

Protractor vs Cypress Unit Testing

Slide 46

Slide 46 text

Noble Stable Unit tests, but not critical A few Protractor UAT potential Many critical unit tests Many critical Protractor Some UAT

Slide 47

Slide 47 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 48

Slide 48 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 49

Slide 49 text

Rewrite ngUpgrade Elements Hybrid Routing

Slide 50

Slide 50 text

Your Code Your Team Upgrade Decision Tree

Slide 51

Slide 51 text

Your Team Capacity Experience Size

Slide 52

Slide 52 text

Your Code Your Team Upgrade Decision Tree

Slide 53

Slide 53 text

Build Testing Architecture Your Code

Slide 54

Slide 54 text

Your Code Your Team Upgrade Decision Tree

Slide 55

Slide 55 text

Thank you!

Slide 56

Slide 56 text

Sam Julien | @samjulien samj.im/path-to-angular Thank you!