| Author: | Independer |
|---|---|
| Official Page: | Go to website |
| Publish Date: | December 19, 2017 |
| License: | MIT |
Description:
Lightweight implementation of modal dialogs for Angular. Includes a Bootstrap theme and works with Bootstrap 4 styles.
Installation:
# NPM $ npm install @independer/ng-modal --save
Usage:
import { ModalModule } from '@independer/ng-modal';
@NgModule({
declarations: [
],
imports: [
// Import this module in order to use the "modal" component and ModalService
ModalModule
],
providers: [
],
bootstrap: [
],
entryComponents: [
// modal components here
]
})
export class AppModule { }
Options.
@Input() closeOnEscape = true; @Input() closeOnOutsideClick = true; @Input() showCloseButton = true; @Input() routeBehavior = false;