Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

335
Vistas
Angular: Buttons action make the same call

I have in a footer 3 buttons. When I click "next" I redirect to another page. But when I click on "Edit" I would only enable some field, while it does the same action of the next button ( so redirect to another page ).

In your opinion why I have this behaviour?

<div class="row">
<div class="card-footer-sx col">
    <button class="btn back-btn" href="javascript:void(0)"
        (click)="goBack()">Back</button>
    </div>
    <div class="card-footer-center col" style="display: contents"
         href="javascript:void(0)">
        <button class="btn next-btn float-center"
            (click)="enableEditing()">Edit</button>
    </div>

    <div class="card-footer-dx col " >
        <div class="pointer flex-end">
            <div class="container-next-button">
                <div class="app-loader loader-border app-loader-button"
                    *ngIf="loading">
                        <div class="loader">
                        <div class="la-ball-pulse loaderColor">
                            <div></div>
                            <div></div>
                            <div></div>
                        </div>
                        </div>
                </div>
                    <button class="btn next-btn float-right error"
                        (click)="goToNext(undefined)" 
                        role="button">Next
                    </button>
                    </div>
                    </div>
    </div>
</div>

page.ts

enableEditing(){
 this.checkEdit = !this.checkEdit;
}

goToNext(customer){
// navigate to another page
}
about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda