Socket
Socket
Sign inDemoInstall

@4geit/ngx-cart-items-service

Package Overview
Dependencies
103
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @4geit/ngx-cart-items-service

service that handles cart items


Version published
Weekly downloads
5
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@4geit/ngx-cart-items-service npm version


service that handles cart items

Installation

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

Or use yarn using the following command:

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

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

@NgModule({
  // ...
  providers: [
    // ...
    NgxCartItemsService,
    // ...
  ],
  // ...
})
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-cart-items-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

FAQs

Last updated on 04 Jul 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc