ui-scroll

angular-ui > ui-utils > ui-scroll does not work (v. 0.1.0)

陌路散爱 提交于 2020-01-05 18:58:20
问题 I am using this: http://angular-ui.github.io/ui-utils/ and to be more specific this:https://github.com/angular-ui/ui-utils/blob/master/modules/scroll/README.md however it does not seem to work. Here is an example: <div ng-scroll-viewport style="height:240px;" class="chat-messages"> <div class="chat-message" ng-scroll="chat in chats"> <div ng-class="$index % 2 == 0? 'sender pull-right' : 'sender pull-left'"> <div class="icon"> <img src="{{chat.img}}" class="img-circle" alt=""> </div> <div

AngularJS with ng-scroll and ng-repeat

ぃ、小莉子 提交于 2019-12-24 03:27:32
问题 Using angular-ui with angular. Markup includes an ng-scroll element, which I have working with retrieved data from a service. I'd like to create rows of items so an ng-repeat inside an ng-scroll . This works in principle (plunker) but AngularJS says I have something wrong in the JSON encoding and need help to figure out what I'm doing wrong. So to be clear, the markup and JSON below work in plunker but not in the app. The JSON in the plunker and below is taken from the debugger response body.