inicializar search string en listado de categorias
This commit is contained in:
parent
4ceff2b1f4
commit
73fece59a2
|
@ -13,8 +13,11 @@ import { CategoriaDeleteDialogComponent } from '../delete/categoria-delete-dialo
|
|||
export class CategoriaComponent implements OnInit {
|
||||
categorias?: ICategoria[];
|
||||
isLoading = false;
|
||||
public searchString: string;
|
||||
|
||||
constructor(protected categoriaService: CategoriaService, protected modalService: NgbModal) {}
|
||||
constructor(protected categoriaService: CategoriaService, protected modalService: NgbModal) {
|
||||
this.searchString = '';
|
||||
}
|
||||
|
||||
loadAll(): void {
|
||||
this.isLoading = true;
|
||||
|
@ -31,6 +34,7 @@ export class CategoriaComponent implements OnInit {
|
|||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.searchString = '';
|
||||
this.loadAll();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue