javascript - ng-bind-html blank the page when binding data change -
i trying achieve quora's read on feature when expanded more content displayed.
i using ng-bind-html binding html page p element.
<p ng-show="viewmodel.level==0" ng-bind-html="viewmodel.content0 | sanitize"> <p ng-show="viewmodel.level==1" ng-bind-html="viewmodel.content1 | sanitize">
the expanding works fine, when collapse level 1 0 (more content less), html page went blank stuck there until click or drag page.
how avoid ?
i answer accident.
what need notification list size has changed:
$scope.$broadcast('scroll.resize');
Comments
Post a Comment