npm.io
1.1.0 • Published 5 years ago

ui-ng-app-commons

Licence
ISC
Version
1.1.0
Deps
1
Size
15 kB
Vulns
0
Weekly
0

UI-NG-APP-COMMONS

This project contains commons things required for IV UI

Installation

Production

Use npm package manager to install

npm install ui-app-commons

Local Development

Take clone of this repo

Do npm install to install all dependent node modules

npm install

Compiler with watch option

npm run build

Usage

Local

Update tsconfig.json file of target project and add path to UI-NG-APP-COMMONS

// Import library
import { ApplicationStoreService } from 'ui-app-commons';

// In Angular project inject it in root
// Update providers in app module

providers: [
    {
      provide : ApplicationStoreService,
      useValue : ApplicationStoreService.getInstance()
    }
  ],

// In components import the library and use the exposed methods