Replacing item in observableArray
The replace function accepts two parameters, the item you want to replace and the new item you want to replace it with. You are passing in the index in place of the item to replace so it doesn’t work. The replace call should be: self.locations.replace(oldLocation, new location(value)); On a side note, you shouldn’t need the … Read more