I’m trying to build a scheduling calendar, and I can see that the month is changing when clicking next or previous, but the text label on the display never changes. It should also be regenerating the month layout for each displayed month as you cycle through them, and that isn’t working either. I can’t figure out why? Any ideas?
The problem is that you’re replacing the observables rather than updating them. That means your view only gets the right contents the first time it is rendered and not for any of the changes thereafter.
When you do
month = whatMonth() you’re replacing the entire observable. What you instead want to do is
month.value = whatMonth(). You can find more info on how to use observables here
Thanks Remi, that was helpful. Making some progress now