@tronicboy/ngx-base-components
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

NgxBaseComponents

A collection of components I use in projects.

This library was generated with Angular CLI version 15.0.0.

How to Use

A simple modal with a title and close button.

<base-modal [show]="this.showEditModal$ | async" (modal-closed)="this.toggleShowEditModal(false)"
  [modal-title]="(this.areaEditTitle$ | async) ?? ''">
  <farm-edit-area-form (submitted)="this.toggleShowEditModal(false)"></farm-edit-area-form>
</base-modal>

Code scaffolding

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

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

Build

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

Publishing

After building your library with ng build ngx-base-components, go to the dist folder cd dist/ngx-base-components and run npm publish.

Running unit tests

Run ng test ngx-base-components 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @tronicboy/ngx-base-components

Weekly Downloads

3

Version

0.0.15

License

MIT

Unpacked Size

81.3 kB

Total Files

22

Last publish

Collaborators

  • tronicboy