calculate-discount-amount
v0.0.3
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.1.2.
Downloads
213
Readme
MyLibrary
This library was generated with Angular CLI version 11.1.2.
Installation
Inside your project folder do:
npm install calculate-discount-amount --save
Usage
<lib-calculate-discount></lib-calculate-discount>
import MyLibraryModule in module
@NgModule({ declarations: [ AppComponent, ], imports: [ MyLibraryModule, BrowserModule, FormsModule, ] });
Code scaffolding
Run ng generate component component-name --project my-library
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project my-library
.
Note: Don't forget to add
--project my-library
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build my-library
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build my-library
, go to the dist folder cd dist/my-library
and run npm publish
.
Running unit tests
Run ng test my-library
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.