I have this function to hide and show a div
Aoba(){
if(this.fill == false){
return this.fill = true
}else if(this.fill == true){
return this.fill = false
}
return console.log(this.fill)
}
and it's working in my filter button, but i need use it again when i click to filter but it´s a subimit button and the subimit dont work when i put the function there.
<div class="col-6">
<button type="submit" (click)="Aoba()" class="btn btn-primary-color w-100">{{'Filtrar' | translate}}</button>
</div>