Truncate (Trunk8) for Angular – Simple Directive

Since no one has done it already, I did a simple Angular directive for the awesome Trunk8 by Rick Viscomi. Note: It’s not thoroughly tested, and requires jQuery. I added a zero-timeout to allow the template to render before trunk8 is applied.

Usage:

Settings (Default value):

Source code: