-
JavaScript
Lazy inter-module communication with require() and webpack
Motivation CommonJS’ modules can be loaded on demand with require.ensure(…). Example: require.ensure(["module-a"], function(require) { var a = require("module-a"); // module-a can…
Read More » -
Angular.js
Promises in AngularJS. Part II. $q service.
I have already blogged about Promises in AngularJS 1.x. This is the second part which describes the Angular’s $q service.…
Read More » -
Angular.js
The best way for sharing data between controllers in AngularJS 1.x
You may know the situation in AngularJS 1.x when multiple independent controllers need to share some data. E.g. one controller…
Read More » -
Angular.js
Mock responses to HTTP calls with network traffic simulation by using ngMockE2E
The AngularJS’ module ngMockE2E allows to fake HTTP backend implementation for unit testing and to respond with static or dynamic responses…
Read More » -
Angular.js
Promises in AngularJS. Part I. Basics.
There are many blog posts about Promises in general and Promises in AngularJS in particular. Promises are a part of…
Read More » -
Angular.js
Magic $parse service in AngularJS
AngularJS has a useful, but less documented $parse service which is shortly described in the Angular’s docu as “converts Angular expression…
Read More » -
JavaScript
Create source maps at project build time for JavaScript debugging
If you’re doing front end web development, your web resources such as JavaScript and CSS files might be minificated, transpiled…
Read More » -
Web Dev
HTTP web server for Chrome to test local web applications
If you are writing HTML and JavaScript on your PC and testing the output in your browser without setting up…
Read More » -
JavaScript
JavaScript Closures: Pass parameters to callbacks
Many JavaScript libraries allow to define callbacks. We often need to pass various parameters oder some context from outside to…
Read More »
- 1
- 2