[Vue 2 Snippets] Add title attribute only if needed
Today we'll create a directive which adds a title attribute if the text is truncated. like so:    We...
Tags: javascript, vue, todayilearned