@ngcommerce/core

Welcome to ngCommerce! ===================


Keywords
angular4, ecommerce, typescript, core, ng, angular
License
MIT
Install
npm install @ngcommerce/core@1.1.82

Documentation

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