angularjs directives demo from egghead.io