<commit_before># angular2-simple-modal

Simple-modal is a lightweight, reusable Angular 2 rc.6 compatible solution 
that will create a modal dialog, add it to the DOM, and then remove the modal 
from the DOM when it is dismissed. The modal returns a promise indicating 
which button was pressed to dismiss the modal that then optionally can be used 
for further processing.

The ``BaseModal`` has a default, generic modal style provided that can be 
extended to display modals with other style sheets, such as Bootstrap.

### Demo

A [working demo](http://czeckd.github.io/angular2-simple-modal/demo/) shows
the modal in action. It allows strings, buttons, and icons to be customized.

### Usage

Three parts comprise the simple-modal: a ``BaseModalConfig``, a modal 
component, and the ``SimpleModal`` provider.

The ``BaseModalConfig`` contains the settings for the modal and is injected 
when the modal is created by calling ``show(config:BaseModalConfig, 
modal:Type<BaseModal>)`` on the ``SimpleModal`` provider. The modal loaded can 
either be the default ``BaseModal`` component or a component extending it. See 
the ``BootstrapModal`` component for an example.

The following parameters are settable on the ``BaseModalConfig``: 
- **title** - HTML or text for the modal's title
- **message** - HTML or text for the modal's body 
- **type** - (default, info, warning, or critical)
- **blocking** - whether or not the modal can be dismissed by clicking the 
overlay
- **confirmBtn** - label of the optional confirm button. The confirmButton is <commit_msg>Update for Angular 2.0.0 release<commit_after># angular2-simple-modal

Simple-modal is a lightweight, reusable Angular 2.0.0 compatible solution 
that will create a modal dialog, add it to the DOM, and then remove the modal 
from the DOM when it is dismissed. The modal returns a promise indicating 
which button was pressed to dismiss the modal that then optionally can be used 
for further processing.

The ``BaseModal`` has a default, generic modal style provided that can be 
extended to display modals with other style sheets, such as Bootstrap.

### Demo

A [working demo](http://czeckd.github.io/angular2-simple-modal/demo/) shows
the modal in action. It allows strings, buttons, and icons to be customized.

### Usage

Three parts comprise the simple-modal: a ``BaseModalConfig``, a modal 
component, and the ``SimpleModal`` provider.

The ``BaseModalConfig`` contains the settings for the modal and is injected 
when the modal is created by calling ``show(config:BaseModalConfig, 
modal:Type<BaseModal>)`` on the ``SimpleModal`` provider. The modal loaded can 
either be the default ``BaseModal`` component or a component extending it. See 
the ``BootstrapModal`` component for an example.

The following parameters are settable on the ``BaseModalConfig``: 
- **title** - HTML or text for the modal's title
- **message** - HTML or text for the modal's body 
- **type** - (default, info, warning, or critical)
- **blocking** - whether or not the modal can be dismissed by clicking the 
overlay
- **confirmBtn** - label of the optional confirm button. The confirmButton is 
{'fraction_non_alphanumeric': 0.08370464672183323, 'fraction_numerical': 0.0038192234245703373, 'mean_word_length': 4.54320987654321, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6375860', 'n_tokens_mistral': 843, 'n_tokens_neox': 808, 'n_words': 429}