Example using directives from angularjs