skip to Main Content

Javascript – I can't add the method by using addEventListner in Angular Project

getCheckStatus(checkStatus: string) { let statusClass = ''; if (checkStatus === 'Completed') { statusClass = 'mat-focus-indicator btn--primary__button mat-raised-button mat-button-base'; } else { statusClass = 'mat-focus-indicator mat-raised-button mat-button-base mat-button-disabled'; } const button = document.createElement('button'); button.className = statusClass; button.textContent = 'Close'; button.addEventListener("click", ()…

VIEW QUESTION
Back To Top
Search