Skip to content

Commit 2e19b7a

Browse files
committed
chore: replace [ngClass] with [class]
1 parent 36d02fd commit 2e19b7a

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

frameworks/angular-slickgrid/src/demos/examples/example33.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2>
3535
<label for="pinned-rows">Simulated Server Delay (ms): </label>
3636
<input type="number" id="server-delay" data-test="server-delay" style="width: 60px" [(ngModel)]="serverApiDelay" />
3737
</div>
38-
<div class="alert alert-info is-narrow col" [ngClass]="!showLazyLoading() ? 'invisible' : ''" data-test="alert-lazy">
38+
<div class="alert alert-info is-narrow col" [class]="!showLazyLoading() ? 'invisible' : ''" data-test="alert-lazy">
3939
Lazy loading collection...
4040
</div>
4141
</div>

frameworks/angular-slickgrid/src/demos/examples/example33.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { NgClass } from '@angular/common';
21
import { Component, signal, ViewEncapsulation, type OnInit } from '@angular/core';
32
import { FormsModule } from '@angular/forms';
43
import { SlickCustomTooltip } from '@slickgrid-universal/custom-tooltip-plugin';
@@ -25,7 +24,7 @@ const NB_ITEMS = 1000;
2524
templateUrl: './example33.component.html',
2625
styleUrls: ['./example33.component.scss'],
2726
encapsulation: ViewEncapsulation.None,
28-
imports: [FormsModule, NgClass, AngularSlickgridComponent],
27+
imports: [FormsModule, AngularSlickgridComponent],
2928
})
3029
export class Example33Component implements OnInit {
3130
angularGrid!: AngularGridInstance;

frameworks/angular-slickgrid/src/demos/examples/swt-common-grid-pagination.component.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { NgClass } from '@angular/common';
21
import { HttpClient } from '@angular/common/http';
32
import { Component, Input, signal, type OnInit } from '@angular/core';
43
import { TranslateDirective } from '@ngx-translate/core';
@@ -19,10 +18,10 @@ import { Logger } from './swt-logger.service';
1918
<div class="slick-pagination-nav">
2019
<nav aria-label="Page navigation">
2120
<ul class="pagination">
22-
<li class="page-item" [ngClass]="pageNumber === 1 ? 'disabled' : ''">
21+
<li class="page-item" [class]="pageNumber === 1 ? 'disabled' : ''">
2322
<a class="page-link icon-seek-first mdi mdi-page-first" aria-label="First" (click)="changeToFirstPage($event)"> </a>
2423
</li>
25-
<li class="page-item" [ngClass]="pageNumber === 1 ? 'disabled' : ''">
24+
<li class="page-item" [class]="pageNumber === 1 ? 'disabled' : ''">
2625
<a
2726
class="page-link icon-seek-prev mdi mdi-chevron-down mdi-rotate-240"
2827
aria-label="Previous"
@@ -41,10 +40,10 @@ import { Logger } from './swt-logger.service';
4140
4241
<nav aria-label="Page navigation">
4342
<ul class="pagination">
44-
<li class="page-item" [ngClass]="pageNumber === pageCount ? 'disabled' : ''">
43+
<li class="page-item" [class]="pageNumber === pageCount ? 'disabled' : ''">
4544
<a class="page-link icon-seek-next text-center mdi-chevron-down" aria-label="Next" (click)="changeToNextPage($event)"> </a>
4645
</li>
47-
<li class="page-item" [ngClass]="pageNumber === pageCount ? 'disabled' : ''">
46+
<li class="page-item" [class]="pageNumber === pageCount ? 'disabled' : ''">
4847
<a class="page-link icon-seek-end mdi mdi-page-last" aria-label="Last" (click)="changeToLastPage($event)"> </a>
4948
</li>
5049
</ul>
@@ -75,7 +74,7 @@ import { Logger } from './swt-logger.service';
7574
}
7675
`,
7776
],
78-
imports: [NgClass, TranslateDirective],
77+
imports: [TranslateDirective],
7978
})
8079
export class SwtCommonGridPaginationComponent implements OnInit {
8180
private logger: Logger;

0 commit comments

Comments
 (0)