Tagged “vue”
-
TIL How to implement two-way binding without a framework javascript vue codepen react data
One of the reasons we use React or Vue is because of that sweet sweet two-way binding. It's the automatic syncing of data between the model (data) and the view (UI) in both directions. Any changes made to the data will automatically update the view, and any changes made to the view will automatically update the data.
-
TIL Cherry-picking out of bootstrap-vue javascript vue
If you are using a component library that uses ES modules like bootstrap-vue, you can cherry pick its components instead of just registering all of them globally.
-
TIL How a virtual dom works virtualdom dom react vue
Then, the Virtual dom compares diffs from old virtual dom, and then reapplies it. We apply the minimal amount of changes.
-
TIL Vue's Render Function vue render advanced
A good example is that you want to generate a lot of list items, and writing them in the '<template>' section makes it look like spaghetti.
-
TIL Getting parent data from child component vue components
Sometimes we want to access data from a parent, but don’t want to go through the hassle of passing props.
-
TIL a clean way to add classes based on the page in Vue clean-code arrays vue
If your pages exist in a array, use the includes() to check.
-
TIL using code-splitting to improve your First Contentful Paint (FCP) score javascript seo esmodules webpack vue react frameworks
Code splitting is a technique where you send only the necessary modules to the user in the beginning.
-
TIL how to jump to a element within a Vue Component vue
You use the $el selector and a scrollIntoView
-
TIL chaining Vue 3 Main.js vue js
Vue's Main.js file looks slightly different. Here is how to modify it.
See all tags.