diff options
author | benal01 <bja4245@rit.edu> | 2025-03-27 10:09:19 -0400 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-03-27 10:09:19 -0400 |
commit | ee4154df85a971f3a0f8e43fd6afdfa6a620ea99 (patch) | |
tree | 1dbbd0d14cabbcc7fb15a58376b270f7316a1bf1 /ufund-ui/src/app/components/need-list/need-list.component.html | |
parent | 65590e6dfbed90e4acd342a72feb8d7b5120d70c (diff) | |
download | JellySolutions-ee4154df85a971f3a0f8e43fd6afdfa6a620ea99.tar.gz JellySolutions-ee4154df85a971f3a0f8e43fd6afdfa6a620ea99.tar.bz2 JellySolutions-ee4154df85a971f3a0f8e43fd6afdfa6a620ea99.zip |
refactor change sort algo func with [(ngModel)] binding
Diffstat (limited to '')
-rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html index 5be915c..4f259a0 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.html +++ b/ufund-ui/src/app/components/need-list/need-list.component.html @@ -1,7 +1,7 @@ <h1>Needs List</h1> <div id="search-container"> <label for="sort">Sort by:</label> - <select [(ngModel)]="sortSelection" id="sort" (change)="changeSortAlgo(sortSelection, searchForm.value)"> + <select [(ngModel)] = "sortSelection" id="sort" (change)="search(searchForm.value)"> <option *ngFor="let algorithm of SortingAlgoArrays" value="{{algorithm.name}}"> {{algorithm.display[sortMode === 'Ascending' ? 0 : 1]}} </option> |