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

Custom View Templates For Components In Angular 2

Posted on .

TL;DR If you're into examples more then explanations, here is the StopWatch example in Plunker Background If you want to create reusable and customisable Angular 2 Components you will need to provide the user of the component a way to inject a custom template…

Featured

QuickTip: Future proof your Promises from angular 1.x to angular 2.

Posted on .

AngularJS (1.x) is a veteran in the world of frameworks. As such it carries a lot of baggage, some of it not in fashion these days. Angular's $q is a Promise like library that brought promises to life inside the angular eco-system. As order came to life and th…

Featured

AngularJS - Detect / Notify when a page was rendered.

Posted on .

Recently I had task that involved DOM manipulation after a page load. The manipulation involved calculating a dynamic height for an element, using input from other elements then applying the calculated height on an element. Quite a simple task... almost. Afte…

Featured

Debugging a Webpack plugin / loader with webstorm.

Posted on .

Updates: See bottom section for updates added to this article. Webpack is awesome! Webpack is a powerful build tool, it is so powerful that in most cases you will never need to extend it. The existing plugins and/or loaders covers most use cases. If you do…

Featured

AngularJS TypeScript

Automating component registration in AngularJS

Posted on .

Bootstrapping an AngularJS application involves a lot of registration, we have to register every component we create so we can use it later with our precious friend, mister DI. The manual way The process looks the same for every component: Using the angular ap…