A example to understand how angular directives work