Fixed snap angularjs directive