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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -