1 tutorial tagged with Calculate

Calculate your age with Vue

While it's easy to remedy (just set a reminder to update the dang age man!), a better solution would be to have the age value update automatically. Similarly to how one would auto update the copyright date in a sites footer. Doing this is in php would be pretty trivial, but being that it's not something I've done before in Vue.js, it took a bit of tinkering to get working. I'm using Gridsome for my site, but this will apply to any Vue.js project. Here is the snippet, added as computed properti

Continue reading