Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

336
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!