angularjs - Jquery ellipsis plugin not working with angular directive -


i trying use jquery-ellipsis plugin within ng-repeat using directive.

.directive('ellipsisitem', function () { return {     restrict: 'a',     replace: true,     link: function (scope, element, attrs) {         $(element).ellipsis();     } }; }); 

and dom is:

<li class="list-group-item  ng-scope" ng-repeat="question in questions" ellipsis-item> {{question.questiontext}}</li> 

but list content of {{question.questiontext}}

if remove $(element).ellipsis(); works fine!!

anyone?

try wrap $(element).ellipsis() in $timeout(function(){});


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -