on Jun 05, 2015 in AngularJS
Angular offers a great flexibility in the way you code. However probably weak part is that it doesn't really promote the idea of inheritance of components. It's not that simple actually although is possible to extend basically everything, overwrite or decorate. In this post I will cover a simple and effective solution for controller inheritance.
This article is a selection of some tricks and techniques one may find useful while building an AngularJS applications.
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?
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!
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.
A simple Chrome extension that makes reading Wikipedia articles more convenient by providing quick article abstracts in popup.