Skip to content

Commit

Permalink
Fix usage of == in Angular templates
Browse files Browse the repository at this point in the history
The `@angular-eslint/template/eqeqeq` linting rule forbids usage of the
== operator in Angular component templates, preferring the more type
safe === operator instead.

Lint rule: @angular-eslint/template/eqeqeq
  • Loading branch information
meisekimiu committed Oct 27, 2023
1 parent fb7773d commit 1132bea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/apps/components/connector/connector.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
id="connector-connect"
[hidden]="connected"
(click)="connect()"
[disabled]="waiting || connector.type == 'type.connector.facebook'">
[disabled]="waiting || connector.type === 'type.connector.facebook'">
{{ connectText || 'Connect' }}
</button>
<button class="btn btn-primary" [hidden]="!folder" (click)="goToFolder()" [disabled]="waiting"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
*ngFor="let record of records; let i = index"
[hidden]="!isQueued(i)"
[ngClass]="{
prev: i == currentIndex - 1,
next: i == currentIndex + 1,
current: i == currentIndex,
prev: i === currentIndex - 1,
next: i === currentIndex + 1,
current: i === currentIndex,
queue: isQueued(i)
}"
>
Expand All @@ -28,7 +28,7 @@
[bgSrc]="record.thumbURL200"
*ngIf="isQueued(i)"
></div>
<div *ngIf="currentRecord == record" class="full" [ngSwitch]="">
<div *ngIf="currentRecord === record" class="full" [ngSwitch]="">
<pr-thumbnail
(disableSwipe)="toggleSwipe($event)"
(isFullScreen)="toggleFullscreen($event)"
Expand Down

0 comments on commit 1132bea

Please sign in to comment.