I made an image for this question to make it easier to understand.
Is it possible to create an ellipsis on a
The mentioned dotdotdot jQuery plugin work nice with angular:
(function (angular) {
angular.module('app')
.directive('appEllipsis', [
"$log", "$timeout", function ($log, $timeout) {
return {
restrict: 'A',
scope: false,
link: function (scope, element, attrs) {
// let the angular data binding run first
$timeout(function() {
element.dotdotdot({
watch: "window"
});
});
}
}
}
]);
})(window.angular);
The corresponding markup would be:
{{ selectedItem.Description }}