In my previous article, I discussed how to use Vuex in your NativeScript application. Vuex is a pretty complex topic and I only covered a small part of it in the last demo, so this article will add a bit more detail and also correct the glaring mistake of not including any cats. I’m sorry — I honestly don’t know what I was thinking.
Before we get into the code, let’s take a quick look at the application. This is a rather simple one-page application that simulates taking care of a cat. For those of you old enough to remember you can consider it a Tamagotchi for your phone. On opening the application, your cat is nice and happy.