1.0.0 • Published 2 years ago

@cartesianui/ng-axis v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@cartesianui/ng-axis

This library was generated with Angular CLI version 12.2.0.

Code scaffolding

Run ng generate component component-name --project ng-axis to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ng-axis.

Note: Don't forget to add --project ng-axis or else it will be added to the default project in your angular.json file.

Build

Run ng build ng-axis to build the project. The build artifacts will be stored in the dist/ directory.

Development/Build

To generate all *.js, *.js.map and *.d.ts files. The build artifacts will be stored in the dist/ directory.

$ npm run build:prod

Publishing

After building your library, go to the dist folder cd dist/ng-axis and run npm publish or run below command

Running unit tests

Run ng test ng-axis to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.


Important

Issues of this repository are tracked on https://github.com/orendalabs/cartesian.ui. Please create your issues on https://github.com/orendalabs/cartesian.ui/issues.

Installation

To install this library, run:

$ npm i @cartesianui/ng-axis --save

AxisHttpInterceptor

In order to use AxisHttpInterceptor, first import it into module like below;

import { AxisHttpInterceptor } from '@cartesianui/ng-axis';
import { HTTP_INTERCEPTORS } from '@angular/common/http';

then, add it to your module providers like below;

imports: [
    ///other imports
],
providers: [
    ///other providers
    { provide: HTTP_INTERCEPTORS, useClass: AxisHttpInterceptor, multi: true }
]

TenancyService

Import any other service e.g. TenancyService

import { TenancyService } from '@cartesianui/ng-axis';

License

MIT