fix(directive): add close function
Release v0.2.1