Open Closed

Generate BlogModel/ BlogService for Angular app #7252


User avatar
0
canh.nguyen@efibot.com created
  • ABP Framework version: v8.1.1
  • UI Type: Angular / ASP page
  • Database System: EF Core - SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • Implement Blogging Module into my sourcecode
  • Copy Module/Volo/Application/Blogging/Post/PostAppService to MyApp/Application/Blogging/Post/PostAppService
  • Run App
  • In angular folder, run command: 'abp proxy-generate -t ng' Issue: The BlogModel/Blog service in Angular is not generated. Expectation: generate BlogModel/ BlogService for Angular app With this expectation, What step I'm missing?

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

    Hi,

    Please try:

    • abp proxy-generate -t ng -m blogging
    • abp proxy-generate -t ng -m bloggingAdmin
  • User Avatar
    0
    canh.nguyen@efibot.com created

    abp proxy-generate -t ng -m bloggingAdmin

    Thank you, but these command not working now

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Could you share the response of the /api/abp/api-definition endpont.

  • User Avatar
    0
    canh.nguyen@efibot.com created

    Sorry, What do you mean? I can call api blogging endpoint throw Angular request

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    What's the response if you access the HTTP.API.Host_URL/api/abp/api-definition endpoint.

  • User Avatar
    0
    canh.nguyen@efibot.com created

    What's the part do you want we share in this image?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can you share them all? thanks.

  • User Avatar
    0
    canh.nguyen@efibot.com created

    It's a long file, I can't share all with text or file with Abp Support Editor. Can you detect issue with specific part? Or can you give me the email for sharing this tex/file

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    My email is shiwei.liang@volosoft.com thanks.

    Thank you, but these command not working now

    And is there any error/warn messages?

  • User Avatar
    0
    canh.nguyen@efibot.com created

    I also send email for you.

    No any error/warn when run these command:

    abp proxy-generate -t ng -m blogging

    abp proxy-generate -t ng -m bloggingAdmin

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Will it work if you try these?

    • abp proxy-generate -t ng --module blogging

    • abp proxy-generate -t ng --module bloggingAdmin

    https://docs.abp.io/en/abp/latest/CLI#options-6

  • User Avatar
    0
    canh.nguyen@efibot.com created

    Will it work if you try these?

    • abp proxy-generate -t ng --module blogging

    • abp proxy-generate -t ng --module bloggingAdmin

    https://docs.abp.io/en/abp/latest/CLI#options-6

    Thank you, but these command not working

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Is there any error message on the terminal?

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11