First, make the flax egg and set aside.
Next, grate the onions and potatoes into a large bowl. Add to a cheesecloth or nut milk bag and strain the potatoes over the bowl. Don't discard the potato liquid yet as you will want to use the starch that settles to the bottom of the bowl in the batter.
Add the strained grated potatoes and onions to a separate bowl. Then, add in the flax egg, all-purpose flour, and spices. As a final step, dump out the water from the bowl containing the potato liquid. At the bottom there should be a layer of potato starch. Add this to the bowl with the rest of the latke ingredients and stir until well mixed. The potato pancake batter should be slightly sticky, but not too wet. If it's too dry, add in 1-2 tablespoon of almond milk and mix.
Next, fill up your frying pan until it is ¼ inch high in oil. Once the oil is hot, scoop out the latke batter and add it to the pan. Use a spatula to immediately press down and flatten each latke so it is not too thick. Make sure not to overcrowd the pan.
Fry each latke for 2-3 minutes on each side or until browned and crispy. Once the latkes are done, remove and place onto a paper towel lined plate to soak up any excess oil.
Serve the latkes while still warm with your choice of toppings. Enjoy!