feat(directive): Added anchor directive to prevent navigation when the anchor is empty.

Closes #112