@ngcommerce/core

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

Stats

StarsIssuesVersionUpdatedCreatedSize
@ngcommerce/core
001.5.204 years ago4 years agoMinified + gzip package size for @ngcommerce/core in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.