@fitpuli/fitpuli-dialog
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.16 • Public • Published

FitpuliDialog

A wrapper around Material's dialog component and service.

This library was generated with Angular CLI version 8.2.14.

Code scaffolding

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

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

Usage

Add module to imports:

@NgModule({
  declarations: [],
  imports: [
    FitpuliDialogModule,
  ],
  exports: [],
})
constructor(private dialog: FitpuliDialogService) {}

openDialog() {
    this.dialog.open({ data: {
        title: "title",
        type: DialogType.SUCCESS,
        description: "description",
        okBtn: "OK"
        }
    });
}

Build

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

Publishing

After building your library with ng build fitpuli-dialog, go to the dist folder cd dist/fitpuli-dialog and run npm publish --access public.

Running unit tests

Run ng test fitpuli-dialog 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @fitpuli/fitpuli-dialog

Weekly Downloads

18

Version

1.0.0-beta.16

License

none

Unpacked Size

93.6 kB

Total Files

16

Last publish

Collaborators

  • fpeterdev
  • zcsongor_th