docs(example): add example of using directive