AngularJS directives put to use - Part 1