Commit aeaaa1bbf1657e97caf59e5c8bf8cf450db92d64
1 parent
5afc708dc8
Exists in
master
and in
1 other branch
bug limpiar pantalla al dar al botón crear después de editar
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
src/js/controller.js
src/js/service.js
| ... | ... | @@ -12,6 +12,9 @@ angular.module('focaCrearNotaPedido') |
| 12 | 12 | setNotaPedido: function(notaPedido) { |
| 13 | 13 | this.notaPedido = notaPedido; |
| 14 | 14 | }, |
| 15 | + clearNotaPedido: function() { | |
| 16 | + this.notaPedido = undefined; | |
| 17 | + }, | |
| 15 | 18 | getNotaPedido: function() { |
| 16 | 19 | return this.notaPedido; |
| 17 | 20 | }, |