diff --git a/README.md b/README.md index c20c56a..4d68070 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,16 @@ var modalInstance = $uibModal.open( size: 'md' } ); + + +Y despues consiguiendo el resultado de esta forma: +
+ modalInstance.result.then( + function (producto) { + console.info(producto); + // variable producto tiene el producto seleccionado en el modal + }, function () { + // funcion ejecutada cuando se cancela el modal + } + );\ No newline at end of file diff --git a/index.html b/index.html index 90762f5..f3157be 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,7 @@ + @@ -23,18 +24,42 @@ +