Skip to content

Commit

Permalink
se cambia saveBook() por addBook()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jajajaby committed Dec 11, 2018
1 parent ff9f64d commit e51372e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/add-book/add-book.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="container" style="background-color: #ffffff;">
<h1 style="padding-top:30px;">Agregar libro</h1>
<form class="form-material m-t-40" [formGroup]="form" (ngSubmit)="saveBook()" novalidate="novalidate">
<form class="form-material m-t-40" [formGroup]="form" (ngSubmit)="addBook()" novalidate="novalidate">
<div class="row">
<!-- Inicio col 1 -->
<div class="col-6">
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/add-book/add-book.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class AddBookComponent implements OnInit {
}

// Guarda un libro nuevo en la DB
saveBook(){
addBook(){
if( this.form.invalid ){
swal(
'Debe completar el formulario',
Expand Down

0 comments on commit e51372e

Please sign in to comment.