vue-typescript icon indicating copy to clipboard operation
vue-typescript copied to clipboard

Use Date.Now to Autogenerate IDs

Open sdras opened this issue 6 years ago • 0 comments

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 :)

sdras avatar Nov 05 '17 15:11 sdras