AngularJS directive chars remaining