您可以为此创建一个指令:
.directive('scrollBottom', function () { return { scope: { scrollBottom: "=" }, link: function (scope, element) { scope.$watchCollection('scrollBottom', function (newValue) { if (newValue) { $(element).scrollTop($(element)[0].scrollHeight); } }); } }})http://plnkr.co/edit/H6tFjw1590jHT28Uihcx?p=preview
顺便说一句:避免在控制器内部进行DOM操作(改用指令)。



