Got it working without needing the second js controller. I just referred to the html template. Happy to share a working Angular paging solution for ABP.
Thanks! I almost have it working. I'm referring to the angular directive in my app file.
I'm still not sure how to refer to a 2nd controller??
(function () { var controllerId = 'app.views.users'; angular.module('app').controller(controllerId, [ //'$scope', function ($scope) { // var vm = this; // //About logic... //} '$scope', 'abp.services.app.person', function ($scope, personService) { var vm = this;
vm.persons = [];
$scope.currentPage = 1;
$scope.pageSize = 5;
personService.getPeople({}).success(function (result) {
vm.persons = result.items;
});
$scope.pageChangeHandler = function (num) {
console.log('page changed to ' + num);
};
}
]);
})();
Thanks!
Thanks! I've got the Application Service working from the Angular Client using IRepository/DTO's and I've also got the Odata sample working.
I can't figure out how to get Odata feed working in my Angular controller. Does anyone have an example of using Odata with an Angular controller using the APB framework?
Help! Happy to pay for someone's time.
Best,
Matt
OK, thanks. Appreciate the help.
OK, thanks. Appreciate the response. This was my first day working with APB.
Yes! I had to reinstall via Nuget. Up and running now, thanks!