Add directive and example
Added Typescript version