Angular 4 Confirmation Modal using ng-bootstrap's modal
Installation
npm install --save ng-confirmation-modal
; imports: ConfirmationModalModule
Usage
Delete some very important stuff
options: any = confirmBtnClass: 'btn btn-success' //DEFAULT VALUE confirmBtnText: 'Confirm' //DEFAULT VALUE cancelBtnClass: 'btn btn-danger' //DEFAULT VALUE cancelBtnText: 'Cancel' //DEFAULT VALUE modalSize: 'lg' //DEFAULT VALUE modalClass: '' //DEFAULT VALUE { console; } { console; }
Todo
Done in a rush because couldn't find anything alike, so:
Add options to set classes and stuff- Make some tests
Set some global configs for messages and texts and classes and w/e- Have the way of setting config reviewed because I just went with my gut