I have a list of flags, when the user checks one of the flags, the function in the .js file is called, and he, in turn, calls the dataservice.js method, which calls the webapi controller, all this works fine and returns the correct data.
What happens when the process is completed, the flag that starts the sequence is not checked. I checked the result and schoolDistrict.IsChecked for this element is set to true, which is correct.
How do I check the box?
Below is the code, but I'm not sure if check.one-way bind
<li repeat.for="schoolDistrict of schools.Districts"> <input type="checkbox" checked.one-way="schoolDistrict.IsChecked" value="${schoolDistrict.Value}" click.trigger="searchSchoolDistrict()"/>${schoolDistrict.Name} </li>
Any help would be greatly appreciated.
aurelia aurelia-binding
Thunderchild
source share