skip to Main Content

Html – Call Delete event on tr and td angular

I have this tr and td tag both have onclick event <tr (click)="update(list.Item)" *ngFor="let list of List | paginate: { itemsPerPage: 10, currentPage: p };"> <td style="width:5%" (click)="delete(list.Item)"> <a title="Delete"><i class="icon-trash" style="margin-right: 10px"></i></a> </td> </tr> delete(itemID) { } issue is…

VIEW QUESTION

Javascript – RXJS dependent observables

I have 3 observables: query$ = this.q$.pipe(tap(() => this.page$.next(0)); filter$ = this.f$.pipe(tap(() => this.page$.next(0)); page$ = new BehaviorSubject<number>(0); combinetLatest({ query: this.query$, filter: this.filter$, page: this.page$ }) .pipe( switchMap(({ query, filter, page }) => { ... }) ); I have to…

VIEW QUESTION

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