errorCtrl.js 348 B

1234567891011121314
  1. app.controller('errorCtrl', function ($scope, $http, notify) {
  2. $scope.email="";
  3. $scope.reset = function(email) {
  4. $http.get("https://pedido.especificosba.com.ar/back/reset/" + email).then(
  5. function(data) {
  6. notify("Reiniciado correctamente");
  7. },
  8. function(err) {
  9. notify({classes:"alert alert-danger", message:"error"});
  10. });
  11. }
  12. });