我们可以在某个限制之后将对象渲染为html(ng-repeat),我们可以继续从最后一个对象渲染到父元素

我需要将列表候选配置文件渲染为coursel(项目)滑块(每张幻灯片限制为18)。

这是我的HTML:

 

从ajax电话我将获得候选人资料列表 – “CandidateProfiles”

角度代码:

 ManagmentApp.controller("cntrlrCandidateProfile", ["$scope", "$routeParams", "HostelManagementService", "$filter", "ModalService", function ($scope, $routeParams, HostelManagementService, $filter, ModalService) { function getCandidateProfiles(response) { $scope.CandidateProfiles = response.data.CandidateData; } function errorTOGetCandidateProfiles() { } // ----------------Coursel slides initialization --------------------- function courselInitialisation(className, slideDuration) { $(className).carousel({ interval: slideDuration //changes the speed }) } courselInitialisation("#hstlCandidateProfiles", 3000); HostelManagementService.get().then(getCandidateProfiles, errorTOGetCandidateProfiles);)}; 

在这里我想做的是限制-18个候选人的个人资料,然后从19个个人资料应该绑定为新的“项目”类。

   

在每18个候选者之后它应该绑定新项目(div元素应该渲染到html中)。 请帮我….