diff --git a/apps/angular/projects/catalog/config/ng-package.json b/apps/angular/projects/catalog/config/ng-package.json new file mode 100644 index 00000000..2f592534 --- /dev/null +++ b/apps/angular/projects/catalog/config/ng-package.json @@ -0,0 +1,7 @@ +{ + "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json", + "dest": "../../dist/catalog/config", + "lib": { + "entryFile": "src/public-api.ts" + } +} diff --git a/apps/angular/projects/catalog/package.json b/apps/angular/projects/catalog/package.json index f6cdbadd..d006325f 100644 --- a/apps/angular/projects/catalog/package.json +++ b/apps/angular/projects/catalog/package.json @@ -1,11 +1,14 @@ { - "name": "catalog", + "name": "@eshoponabp/catalog", "version": "0.0.1", "peerDependencies": { "@angular/common": "^12.2.0", - "@angular/core": "^12.2.0" + "@angular/core": "^12.2.0", + "@abp/ng.theme.shared": "~5.0.0-rc.1", + "@abp/ng.core": "~5.0.0-rc.1", + "@ngx-validate/core": "~0.1.1" }, "dependencies": { "tslib": "^2.3.0" } -} \ No newline at end of file +} diff --git a/apps/angular/projects/catalog/src/pages/product/product-routing.module.ts b/apps/angular/projects/catalog/src/pages/product/product-routing.module.ts index 54eb7690..9c36cee6 100644 --- a/apps/angular/projects/catalog/src/pages/product/product-routing.module.ts +++ b/apps/angular/projects/catalog/src/pages/product/product-routing.module.ts @@ -1,7 +1,7 @@ import { AuthGuard, PermissionGuard } from '@abp/ng.core'; import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { eCatalogPolicyNames } from '@catalog/config'; +import { eCatalogPolicyNames } from '@eshoponabp/catalog/config'; import { ProductComponent } from './product.component'; const routes: Routes = [ diff --git a/apps/angular/projects/catalog/src/pages/product/product.component.html b/apps/angular/projects/catalog/src/pages/product/product.component.html index 8a637087..898b4918 100644 --- a/apps/angular/projects/catalog/src/pages/product/product.component.html +++ b/apps/angular/projects/catalog/src/pages/product/product.component.html @@ -55,6 +55,10 @@ [name]="'CatalogService::DisplayName:Name' | abpLocalization" prop="name" > + +
+ + +
+