I am binding my angular application to ng-bind-html to display my text in 
html format.The issue i am getting is to limit the characters to be shown 
on Client side(UI).My code is as follows

$scope.Testtext='<h1>Hello World testing </h1><p>New World</p>'

and on html page i am binding in following way.

<div ng-bind-html="Testtext"></div>

i tried with Limitto filter but it doesnt work for ng-bind-html. Is there 
any way where i can apply filter to restrict my characters up to 10 
characters using ng-bind-html?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to