I made an image for this question to make it easier to understand.
Is it possible to create an ellipsis on a with a fixed width and multiple
with a fixed width and multiple
Very simple func will do.
Directive:
$scope.truncateAlbumName = function (name) { if (name.length > 36) { return name.slice(0, 34) + ".."; } else { return name; } };
View:
<#p>{{truncateAlbumName(album.name)}}<#/p>