add reusable ng-enter directive to remove trailing dashes when enter is pressed