In this example, we are creating a custom filter that will basically sub-string till the provided length and then create a anchor tag from it Here is the custom filter: app.filter
('ellipsis', function () { return function (text, length) { if (text.length > length) { return text.substr(0, length) + "" + text.substr(length, 10) + ""; }; return text; }; }); And html side will look like: