Base solution for your next web application

Activities of "mattdunndc"

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);
        };
    }
            

]);

})();

I'm trying to display an Angular.JS paged list using this open source directive 'dirPagination'. What is the best practice using ABP? Help!

<a class="postlink" href="https://github.com/michaelbromley/angularUtils/tree/master/src/directives/pagination">https://github.com/michaelbromley/angul ... pagination</a>

The plunker is here: <a class="postlink" href="http://plnkr.co/edit/Wtkv71LIqUR4OhzhgpqL?p=preview">http://plnkr.co/edit/Wtkv71LIqUR4OhzhgpqL?p=preview</a>

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

Day 2 with APB! Making progress.

APB Best practice / architecture question: Do I need a Person APPLICATION SERVICE / interface for Person data coming from a WebAPI?

Thanks in advance.

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!

I am following the ODATA integration sample: <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/OData-Integration">http://aspnetboilerplate.com/Pages/Docu ... ntegration</a>

The ODATA sample has the Entities Person/Phone/Phonetype in the People folder in APB.ODATADEMO.Core project. Is this correct when adding entities to WebAPI? What is the ABP best practice for where to put the entity classes?

Thanks!

Showing 1 to 10 of 13 entries