I\'m new to angularJS and maybe have written something bad...
but how could i right implement this plugin: https://github.com/BeSite/jQuery.dotdotdot
on my t
Here's my attempt:
Directive:
app.directive('dotdotdot', ['$timeout', function($timeout) {
return {
restrict: 'A',
link: function(scope, element, attributes) {
scope.$watch(attributes.dotdotdot, function() {
// Wait for DOM to render
$timeout(function() {
element.dotdotdot();
}, 400);
});
}
}
}]);
Template:
{{article.Title}}