1.0.0 • Published 2 years ago

ngx-modalx v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

NgxModalx

This library is for displaying components inside a modal container.

Clicking outside the modal's content component closes the modal by default. Pressing escape when the modal is open closes the modal by default.

Usage:

  • Import the module:
import {NgxModalxService} from "ngx-modalx";
  • Inject the service, forexample:
const modalxService = inject(NgxModalxService);
  • Then display any component inside the modal with the open function:
this.modalxService.open(ExampleComponent as Type<Component>)
  • Possible to change the default settings (close on click, close on escape pressed):
this.modalService.open(ExampleComponent as Type<Component>, {escCloses: false, clickCloses: false})
1.0.0

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago