Archives mensuelles : septembre 2016

Context binding when a function is called in Javascript

Often, we could the code : this.that = this; or this.self = this; But what represent self and that ? Contrary to this which refers the object in the current context, self and that are not Javascript reserved words. These … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

AngularJS

Use facilities provided by the JS language to have a clean code How to minimize the number of global variables ? Wrap Angular components in an IIFE (Immediately-Invoked Function Expression). Components declared in an IIFE don’t become global variables. How … Continuer la lecture

Publié dans Non classé | Marqué avec | Laisser un commentaire