Posts tagged "angularjs"
Angular`s digest loop is like a baby: you need to take care of it and feed it well, or it will puke all over your nice shirt. Actually, it will probably, eventually do it anyway.
Let's say you have an array of things.
You want to provide to your user the ability to select two things from this array.
If you use the
<select> tag you won't be able to select multiple options from this list unfortunately. You can either come up with a new directive that handles this, use somebody else's plugin, or roll your own Angular filter (probably for learning purposes).
Angular's DI in combination with lazy loading of dependencies is one of my favourite features of Angular.
I was fascinated about the simplified API that Angular provides to make DI happen and the ability to create testable, modular code out of the box.
Anyways we are here to look what's behind Angular's DI, so here we go.