mbowen000 / angular-lightning

Angular Bindings for the Salesforce Lightning Design System
6 stars 5 forks source link

Modals Should have some Standard Hooks/Methods #8

Open mbowen000 opened 8 years ago

mbowen000 commented 8 years ago

Like $close and $cancel -- added to the modal scope so we an easily do an ng-click="$close(obj)"

The instance of the modal should be returned when $liModal.open() is called in order to do:

modalInstance.result.then(function(closeObj) { 
     // do something on close 
}, function(cancelObj) {
     // do something on cancel
});

This should be a priority enhancement.

mbowen000 commented 8 years ago

@AsharS can you design this out and get ready for intern at some point?