csb-calculator v0.0.4
CsbCalculator
This library was generated with Angular CLI version 13.3.0.
Code scaffolding
Run ng generate component component-name --project csb-calculator
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project csb-calculator
.
Note: Don't forget to add
--project csb-calculator
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build csb-calculator
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build csb-calculator
, go to the dist folder cd dist/csb-calculator
and run npm publish
.
Running unit tests
Run ng test csb-calculator
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 Overview and Command Reference page.
How to implement
after install npm package you need to follow given step 1. import CsbCalculatorModule in your appModule or any lazyloaded module
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { CsbCalculatorModule } from 'csb-calculator';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
CsbCalculatorModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Wherever you want to utilise a calculator, use the lib-csb-calculator tag.
Thank you !!!!!!!!!!!!!