Bootstrap 4兼容Angular Modal

Bootstrap 4兼容Angular Modal
插件名称 ng-modal
发布时间 2020年7月13日
插件作者 Independer

Angular的模式对话框的轻量级实现。包含Bootstrap主题,并适用于Bootstrap 4样式。

安装:

# NPM
$ npm install @independer/ng-modal --save

用法:

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 { }

选项。

@Input() closeOnEscape = true;
@Input() closeOnOutsideClick = true;
@Input() showCloseButton = true;
@Input() routeBehavior = false;