- Fix a non-issued error on modal
escapable
(previouslyescapeAble
, c.f. Features below) option that wasn't closing the modal on escape event - Fix a non-issued error on modal
escapable
event that was called in each modal even if not visible. Now it only calls in the visible modals
- BREAKING CHANGES: rename
escapeAble
option toescapable
- Create default z-index and check all modals (pull #79)
- Add issue template (pull #80)
- Add allowOutsideClick option (pull #84)
- Rename
allowOutsideClick
option from PR #84 todismissable
for more consistency - Update unit tests
- Update demo dependencies
- Update the demo with
escapable
anddismissable
options examples
- Add events when actions ends (pull #65)
- Update demo dependencies
- Update library dependencies
- Update all the library build process with latest tools version
- Fix modal close / dismiss issue on projects which use
ChangeDetectionStrategy.OnPush
, closes #47 - Fix a non-issued error on modal prototypes functions where Angular check cycle was triggering an error of type : "value changed after it was checked" (e.g.: if you was watching
modal.hasData()
from a component's view).
- Update project dependencies
- Remove
modalData
fromNgxSmartModalService
- Update the demo
- Now, each modal has its own private
data
property with public accessors (always available from theNgxSmartModalService
) - Modal data no more wrapped into an array. This way, retrieving modal data is easier.
- Privatize the
data
of each modal. Accessible by public accessors - Remove
getAllModalData()
andresetAllModalData()
fromNgxSmartModalService
because- too permissive
- not very useful given that it could be coded if needed depending on the project needs
- it was using the
NgxSmartModalService
modalData
array (no more used)
- Add events
onDataAdded
andonDataRemoved
on each modal