Skip to content
Advertisement

Tag: vue.js

Best practices for declaring or assigning types

I’m a beginner with TypeScript (Day 1), but have worked on above average JavaScript projects. I’m looking for advice about some “best practices” and standards when it comes to declaring or assigning types in code. At the moment, I find myself doing it for literally everything which is essentially making my code unreadable. For example, consider this: This is a

How to toggle colors in list in Vue?

I have a tree-view component: my not working script: I just want to toggle the item’s color, which I choosed, that is when I click an item(im my code this item has @click event) I want to this item change its color to another, but its huge problem to me to turn back previous item to initial color. Ive struggled

Advertisement