The code side of life

JavaScript, TypeScript, ES6, Angular, Node, Architecture and more.

The code side of life

JavaScript, TypeScript, ES6, Angular, Node, Architecture and more.


Featured

Angular2 Webpack AOT JIT

Best of both - Angular 2 AOT Compilation with Lazy JIT Compilation

Posted on .

There's an old saying You can't have the best of both worlds That's true, especially for developers, trade-offs are an everyday struggle. What should I choose, Ahead of Time or Just in Time compilation? TL;DR Choose Ahead of Time But you can also combine…

Featured

Redux TypeScript Angular2 Angular 2 Ngrx

Angular 2 - Managing redux (NGRX) like a boss

Posted on .

Working on a large project with redux can be painful. Managing the modules, structure state and Types without creating hard dependencies and strong coupling is not so trivial. While working with ngrx I came up with a solution that tries to add order to that c…

Featured

Angular 2 SASS Webpack ViewEncapsulation

Angular 2, Webpack, SASS and ViewEncapsulation

Posted on .

When things were simple Working with webpack and SASS is no new news, the process is straight forward. Set a loader to catch all .scss flies and define a chain of loaders to handle it. Here's a simple example of a loader that compiles all SCSS files into CSS,…

Featured

Angular Angular2 Change Detection Zones Zone.js NgZone

Angular 2 Change Detection, Zones and an example

Posted on .

Handling DOM media query change event in angular 2, A real life scenario where Angular's change detection needs a little help. If you have been playing around with angular you probably noticed that the infamous $digest / $apply is gone, no more loops! In this…

Featured

Angular TypeScript AngularJS Animation Collapse SlideToggle animate

Native slide toggle / collapse animation using Angular 2 and Animate

Posted on .

Note: This article is obsolete. The animation module in the upcoming angular 2 RC2 has a different API and a different approach. In Angular 2 RC2+ slide toggle is a non brainer, the animation module comes with a property calculation feature which autom…