, , dotdotdot(), angular {{title}} , ng-bind="title" .
, :
videoApp.directive('myEllip', function() {
var linkFn = function(scope, element, attrs) {
element.dotdotdot({'watch':true});
};
return {
restrict: 'A',
link: linkFn
};
});
html
<ul class="videos_all">
<li my-ellip ng-repeat="video in videos | filter:search | startFrom:currentPage*pageSize | limitTo:pageSize " class="videoSynopsis" >
<p>
<a href ng-click="showVideo('{{video.VideoID}}')" ng-bind="video.Title"></a>
<br/>
<small class="muted" ng-bind="video.Description"></small>
</p>
</li>
</ul>
, dotdotdot , css a small (, , ).