Category: Javascript

Couple of AngularJS tricks

on Aug 21, 2014 in AngularJS, Javascript, directive

This article is a selection of some tricks and techniques one may find useful while building an AngularJS applications.

Promise pattern explained

on Aug 17, 2014 in Javascript, Promise

Promises are very useful and convenient pattern for dealing with asynchronous operations. They come very handy when callbacks and events fall short. Even though there are several libraries which implement this functionality, such as like Q, we will reinvent a wheel. That's right, how would you go, if you needed to implement Promise pattern? I think that it's very simple to do. Let's see?

Writing your own jQuery

on Aug 14, 2014 in jQuery, Javascript, Interview

Have you ever thought of how jQuery actually works? What is in there behind the "$" sign? In this post we will recreate a very basic but still functional mini-jQuery. Check it out, folks!

AngularJS delayedModel directive

on Jan 13, 2014 in AngularJS, directive, Javascript, Projects

ngModel directive allows to setup two-way data binding updating model if the value changes in the view, and other way around. Value gets updated immediately, however sometimes it's useful to trigger update action after some delay. The next custom directive do the trick.

XML to JSON online powered by EmberJS

on Apr 23, 2013 in Projects, EmberJS, Javascript, XML, JSON

There are quite a few tools available to perform XML to JSON conversion online. Recently one more appeared :) I would not reinvent a wheel without a reason. Actually I started looking at EmberJS, and since making an application (no matter what) is the best way of learning things, here we are.

Move the cells in the table

on Mar 12, 2013 in Javascript

I was recently answering the question on Stackoverflow. The guy was asking how to permute table cells. I thought that it would be pretty interesting as a little challenge...