@4geit/ngx-marketplace-products-service

1.2.0 • Public • Published

@4geit/ngx-marketplace-products-service npm version


get list of products in a marketplace app

Installation

  1. A recommended way to install @4geit/ngx-marketplace-products-service is through npm package manager using the following command:
npm i @4geit/ngx-marketplace-products-service --save

Or use yarn using the following command:

yarn add @4geit/ngx-marketplace-products-service
  1. You need to import the NgxMarketplaceProductsService service in the module you want to use it. For instance app.module.ts as follows:
import { NgxMarketplaceProductsService } from '@4geit/ngx-marketplace-products-service';

And you also need to add the NgxMarketplaceProductsService service within the @NgModule decorator as part of the providers list.

@NgModule({
  // ...
  providers: [
    // ...
    NgxMarketplaceProductsService,
    // ...
  ],
  // ...
})
export class AppModule { }
  1. This service allows to override some variables. You can change a variable value as shown in the example below. First you will need to import those variables:
import { VAR1 } from '@4geit/ngx-marketplace-products-service';

And set the variable value in the providers list as below:

@NgModule({
  // ...
  providers: [
    // ...
    { provide: VAR1, useValue: 'VALUE1' },
    // ...
  ],
  // ...
})
export class AppModule { }

Here are the list of the variables this service allows you to override:

  • VAR1
  • VAR2
  • VAR3

Readme

Keywords

none

Package Sidebar

Install

npm i @4geit/ngx-marketplace-products-service

Weekly Downloads

3

Version

1.2.0

License

MIT

Last publish

Collaborators

  • geraldinestarke
  • fabianstarke
  • canercandan