annie spratt 723013 unsplash - UPGRADING TO ANGULAR 7
Angular

UPGRADING TO ANGULAR 7 

Let’s begin with the basics. From Angular 6 upgrading Angular versions can be done with the cli. This makes life a lot easier: Rxjs Angular 7 uses RxJS v6.3 so update RxJS: Typescript Angular 7 supports Typescript v3.1 so here we go again: Other libraries…

daiga ellaby 154936 unsplash - ANGULAR VIEWCHILD
Angular

ANGULAR VIEWCHILD 

When you want to control a child component, directive or DOM element from its parent component, you can use the ViewChild decorator in Angular. ViewChild returns the first element that matches a give child component, directive or DOM element and updates it if the reference…

erico marcelino 235177 unsplash - ANGULAR 6 TREE SHAKING
Angular

ANGULAR 6 TREE SHAKING 

Working in reasonably big companies for the last years I’ve come across big Angular projects. As you would expect these were modular projects consisting of a bunch of modules. One of the things I never took in consideration was ‘tree shaking’. Tree Shaking Tree shaking…

markus spiske 771011 unsplash - NPM PEER DEPENDENCIES
Angular

NPM PEER DEPENDENCIES 

Comming from the java world I realised npm resolves dependencies differently than for example maven. Maven demands one unique version of a dependency amongst who depend on it. This sometimes results in a so called ‘dependency hell’. NPM depencendy tree In contrast to maven, npm…