Skip to content

Commit 1f1bfbf

Browse files
authored
changeField changed to onChange
changeField changed to onChange in Angular material example
1 parent 478b94a commit 1f1bfbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ Example of how you can completely customize the query component with another lib
160160
<mat-radio-button value="or">Or</mat-radio-button>
161161
</mat-radio-group>
162162
</ng-container>
163-
<ng-container *queryField="let rule; let fields=fields; let changeField=changeField">
163+
<ng-container *queryField="let rule; let fields=fields; let onChange=onChange">
164164
<mat-form-field>
165-
<mat-select [(ngModel)]="rule.field" (ngModelChange)="changeField($event, rule)">
165+
<mat-select [(ngModel)]="rule.field" (ngModelChange)="onChange($event, rule)">
166166
<mat-option *ngFor="let field of fields" [value]="field.value">{{field.name}}</mat-option>
167167
</mat-select>
168168
</mat-form-field>

0 commit comments

Comments
 (0)