csb-calc-ng-v12 v0.0.1
CsbCalcNgV12
This library was generated with Angular CLI version 12.2.0.
Code scaffolding
Run ng generate component component-name --project csb-calc-ng-v12
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project csb-calc-ng-v12
.
Note: Don't forget to add
--project csb-calc-ng-v12
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build csb-calc-ng-v12
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build csb-calc-ng-v12
, go to the dist folder cd dist/csb-calc-ng-v12
and run npm publish
.
Running unit tests
Run ng test csb-calc-ng-v12
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.
Implementation steps
after install npm package you need to follow given step
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.
<lib-csb-calculator></lib-csb-calculator>
Thank you !!!!!!!!!!!!!
2 years ago