angularjs bootstarp4 modal code example
Example: bootstrap 4 modal angularjs controller
/**
* Opens bootstarp modal with templateUrl, controller and modalData.
*
* @param {string} tmplUrl - template Url.
* @param {string} controllerName - controller to bind to modal.
* @param {*} [modalData] - this additional data will get injected as $scope.modalData.
*
* @return {object} promise which will be resolved or rejected while closing the modal.
*/
$bootstrap4Modal.show(tmplUrl, controllerName, modalData)