Professional Documents
Culture Documents
Ponent
Ponent
filterPost = '';
ngOnInit(): void {
this.tramite = {codtramite: 0, nombre: '', descripcion: '', duracion: '',
costo: '', modalidad: '', url: '', sectorial: '' };
this.getAllTramites();
}
getAllTramites() {
this.serviciosTramite.getTramite().subscribe(tramite => this.listaTramites =
tramite);
}
//cerrar sesion
logout() {
localStorage.removeItem('token');
this.router.navigate(['login']);
}
cancelar() {
this.goBack();
}
goBack(): void {
this.location.back();
}
selectSectorial(sectorial?:string){
if(!sectorial) return this.ngOnInit();
this.serviciosTramite.getTramiteGobierno(sectorial).subscribe(tramite =>
this.listaTramites = tramite);
}
}