@ngcommerce/core

    1.5.20 • Public • Published

    Welcome to ngCommerce!

    Installation

    1. Install the npm package.

      npm install @ngcommerce/core --save
      
    2. Import EcommerceCoreModule in your application and use forRoot('apiURL') to choose your apiURL :

      import { NgModule }            from '@angular/core';
      import { EcommerceCoreModule } from "@ngcommerce/core";
       
      @NgModule({
          imports: [EcommerceCoreModule.forRoot('http://test/api/') ]
      })
      export class AppModule { } 

    Usage

    Inject the CorService service anywhere you need it and use it like it's alert :

    @Component({})
    export class MyComponent(){
     
        constructor(private service: CorService){
        
                alert(service.apiURL);
     
        }
    }

    The service offer a sub-list of window.console capacities :

    NPM Step

    npm run bundle

    npm publish --access=public

    Install

    npm i @ngcommerce/core

    DownloadsWeekly Downloads

    1

    Version

    1.5.20

    License

    MIT

    Last publish

    Collaborators

    • ngcommerce