finally understanding directives

thanks to stackoverflow
http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-
if-i-have-a-jquery-background/15012542#15012542