Open Closed

Help with the customizing the public web pages #959


User avatar
0
jtallon created
  • ABP Framework version: Latest
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): No
  • Exception message and stack trace:
  • Steps to reproduce the issue:

I am using the *.Web.Public template and finding it diffcult to figure out how to get data from the AppService to the UI.

This is the Service that I want to load data from.

I have created a committees.cshtml in the Pages folder and added a matching navigation menu item. All works well. On the committees.cshtml I have added the following :

I have added committees.js file.... with the following code...

The dynamic proxies for the AppService is not resolving. The window.meetingsPublicPortal is coming back as undefined. I have copied the same as the Backend project, when it works.

What us different about the dynamic proxies in the Web.Public over the MeetingsPublicPortal.Web.csproj project?

URGENT, NEED FOR DEMO


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Try:

    The web.public does not create API dynamic proxy. if you want to use API dynamic proxy. you can try:

    Configure<AbpAspNetCoreMvcOptions>(options =>
    {
        options.ConventionalControllers.Create(typeof(MyProjectNameApplicationModule).Assembly);
    });
    

    Recommend you create a sparate application service layer for the web.public like : Application.Public

  • User Avatar
    0
    jtallon created

    Thanks... this is magical.

    Feedback: These types of conventions would be really good to have documented somewhere

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38