Skip to content

Instantly share code, notes, and snippets.

@natan88
Last active November 4, 2019 17:37
Show Gist options
  • Save natan88/98c6c74dab05e4d3abda4165ff6a2f0d to your computer and use it in GitHub Desktop.
Save natan88/98c6c74dab05e4d3abda4165ff6a2f0d to your computer and use it in GitHub Desktop.
Como usar o componente $uibModal no controlador/componente
$uibModal.open({
component: 'consultorioAnexarArquivo',
backdrop: 'static',
// keyboard: false,
// windowClass: 'app-modal-window-grande',
size: 'sm', // lg, sm, md
resolve: {
modalData: function () {
return {
atendimentoID: $ctrl.atendimentoID,
clienteID: $ctrl.clienteID
};
}
}
}).result.then(function( modelos ){
$ctrl.componente.modelo = modelos;
}, function(res){});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment