Open Closed

Commercial source code to angular package #2031


User avatar
0
truong.nguyen@outlook.com created

Hi, can you assist me on how to download the source code for @volo/abp.commercial.ng.ui?


2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    Hello,

    First run this command in the root of your angular project to generate a project for commercial-ui (it will update angular.json and tsconfig.json)

    npx ng g lib commercial-ui
    

    Then, replace the content of packages/commercial-ui with the attached code.

    Add following two lines in both tsconfig.json and tsconfig.prod.json, and remove "commercial-ui": ["dist/commercial-ui/commercial-ui", "dist/commercial-ui"] statement from tsconfig.json which was generated by angular-cli

    "compilerOptions": {
      // ...
      "paths": {
          "@proxy": ["src/app/proxy/index.ts"],
          "@proxy/*": ["src/app/proxy/*"],
          "@volo/abp.commercial.ng.ui": ["projects/commercial-ui/src/public-api.ts"],
          "@volo/abp.commercial.ng.ui/config": ["projects/commercial-ui/config/src/public-api.ts"]
      }
    }
    

    You can remove "@volo/abp.commercial.ng.ui": "~5.0.0-beta.2", from package.json as well.

    We'll share the package source-code via email.

  • User Avatar
    0
    alper created
    Support Team Director

    you can use the same package for 4.4.3

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