elte html if not updating code example
Example: elte html if not updating
//methods like 'push' wont trigger the {#if} to update
//you need to dummy assign the value:
function addNumber() {
numbers.push(numbers.length + 1);
numbers = numbers;
}
//methods like 'push' wont trigger the {#if} to update
//you need to dummy assign the value:
function addNumber() {
numbers.push(numbers.length + 1);
numbers = numbers;
}