Top 5 benefits after 6 months of component driven AngularJS development In February 2014 Google announced that they had published some new "Best Practice Recommendations for Angular App Structure". For years I had been structuring AngularJS code in directories called controllers, services, directives, filters, etc as outlined by the initial AngularJS documentation and now this new document suddenly proposes a radically
The nitty-gritty of compile and link functions inside AngularJS directives part 2: transclusion Transclusion. A mysterious word I had never heard of before until I met AngularJS. I seriously thought Misko Hevery had invented the word himself, but it appeared to be an existing word: In computer science, transclusion is the inclusion of a document or part of a document into another document
The nitty-gritty of compile and link functions inside AngularJS directives AngularJS directives are amazing. They allow you to create highly semantic and reusable components. In a sense you could consider them as the ultimate precursor of web components. There are many great articles and even books on how to write your own directives. In contrast, there is little information available
How to resolve application-wide resources centrally in AngularJS with ui-router AngularUI Router is an amazing tool. If you have read my article on resource resolution, you already know how to make sure that promises are resolved before controllers are instantiated. In fact, if you haven't read the article yet, I strongly recommend that your read it first before reading this
How to force AngularJS resource resolution with ui-router I'm a big fan of AngularUI Router and have used it extensively in several web applications we released with fabulous results. In this article I'll cover how we use ui-router and ngResource to resolve dependencies that are injected in a template controller. If you are new to ui-router, I highly
Why AngularJS makes every single developer a better one I was recently asked by a client why I prefer AngularJS as client-side JavaScript library in projects I deliver. I thought about it for a while and could have mentioned a million technical reasons, but I replied: Because it kindly stimulates any developer to deliver better code by promoting the
How to fix home and end keys on Mac OS X As a big fan of the Apple full size keyboard, I was constantly bugged by the fact that the home and end keys were not working properly in many apps. This fix, inspired by this article, enables the keys to work properly everywhere: Open a terminal: $ cd ~/Library $ mkdir KeyBindings
How to create cool animations with AngularJS 1.2 and Animate.css I recently received an email: Hi Jurgen, Can you please explain how you do the animations on your articles page? Thank u. Robert To be honest it took me quite a bit of time to get it working. I used AngularJS 1.2 on my previous website and had read
A simple guide to semantic versioning If you're like me and stem from a breed that has been developing way before version control systems like SVN or GIT were born, you probably haven't been paying a lot of attention to versioning your code. However, with modern modular development approaches using version control systems and package managers,
How to fix slow Time Machine backups There are some serious performance issues when using TimeMachine to backup your Mac over a network. In my case, an initial backup of 60 gigabytes took more than 3 days to complete. Luckily, the problem can easily be fixed in three simple steps: Step 1: Prevent .DS_Store file creation