vue-typescript
vue-typescript copied to clipboard
Use Date.Now to Autogenerate IDs
Currently the ID is taken from user input, which is culpable to failure because they can put in a string, which won't let it go through. Rather than even ensuring it's a number and a unique number, it would be nice to autogenerate the IDs using Date.Now so that they would be unique. Then in the UI, if you'd like to keep the style of the numbers on the side, we could use v-for to number them :)