@fitpuli/fitpuli-dialog
v1.0.0-beta.16
Published
A wrapper around Material's dialog component and service.
Downloads
24
Readme
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 yourangular.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.