How can I create a field that is different for every user. For example if we have an instance of a Comment model and there is a field that is different for every user that tells if user has liked that comment. So when I map through the objects i can just check if a user has liked it. Something like a local field for every user.
Question posted in Javascript
A very good W3school tutorial can be found here.
A very good W3school tutorial can be found here.
2
Answers
I’m not sure if I understand your question correctly, but are you looking to create a UDL? Do you mean an object that stores information for analytical purposes? If so, you can simply create an empty object and add any data you wish to it using an Event Listener.
To track which user has liked a comment, you can create a related entity.