NO LONGER MAINTAINED: Please migrate to http://chat.vuejs.org/ for the new and improved community chat
yyx990803 on regression-test
fix: allow more enumerated valu… chore: update sponsors [ci skip… fix: fix v-bind:style for camel… and 1 more (compare)
yyx990803 on dev
fix: fix child forceUpdate regr… (compare)
yyx990803 on dev
fix: fix v-bind:style for camel… (compare)
yyx990803 on dev
chore: update sponsors [ci skip… (compare)
yyx990803 on patreon-update-1548947041032
vue-bot on patreon-update-1548947041032
chore: update sponsors [ci skip] (compare)
yyx990803 on patreon-update-1548924868622
yyx990803 on dev
fix: allow more enumerated valu… (compare)
KB1RD
> <@gitter_danilosilvadev:matrix.org> Hi guys i have a very basic question, why items is undefined?
<template> <ul> <li v-for="(item, index) in items" v-bind:key="index"> {{ item.snippet.title }} </li> </ul> </template> <script> export default { name: "VideoList", props: { items } }; </script>
items
is listed as a prop. You'd have to show where you use the VideoList
component to find out what the value of items
is
@ibrijeshsoni actually so far i never needed any other resource than the documentation: https://vuejs.org/v2/guide/
https://vuejs.org/v2/guide/single-file-components.html
https://vuex.vuejs.org/guide/
or if you want vue with ssr go here: https://nuxtjs.org/guide
Hi everyone, does anyone know why
mounted() {
window.addEventListener('resize', debounce(this.hangleResize, 500))
window.addEventListener('scroll', debounce(this.hangleScroll, 500))
},
destroyed() {
window.removeEventListener('resize', debounce(this.hangleResize, 500))
window.removeEventListener('scroll', debounce(this.hangleScroll, 500))
},
does not update vue.devtools values
Hi guys, i have a component that is receiving a prop array.
PARENT
<ExerciseLayoutCardComponent
v-for="layout of layouts"
:key="layout.id"
:layout="{layout}"
/>
CHILD
props: {
layout: Object
},
But at the CHILD template when trying to access, is not displaying anything. I already made a console.log that showed the data is there. What is missing?
<span class="exercise-type-card__title">{{ layout.title }}</span>
PS: layout.title returns nothing.
How savvy are you on the latest dev tools and technologies? All developers who complete the survey and register enter a raffle to win $16,000 worth of prizes. Get your community involved too - promote the survey and you may win in addition $1,000 in cash!
https://developereconomics.net/?member_id=pdSrFATx&lang=en
Strictly for developers or those learning any programming language
Make your voice heard and earn cool cash and swags as a developer.
I want to configure idletime from the component level , and rewrite onIdle action for each component.
it doesn't work when I call onIdle in a component it just work in the main.js. sorry for bad english
// this works in main.js but not in component eg: test.vue
const eventsHub = new Vue()
Vue.use(IdleVue, {
eventEmitter: eventsHub,
idleTime: 10000
})
how can I achieve that ? thanks
beforeMount: function () {
this.$loadScript('https://connect.facebook.net/en_US/sdk.js')
.then((res) => {
console.log('LOADED SUCCESSFULLY', res)
})
.catch((err) => {
console.log(err)
})
},
Yo guys, im helping with a project that has a strange way of create types. It doesnt uses TS, but is giving types using classes like this, mostly to Vuex.
class Exercise {
constructor (id, type, title) {
this.id = id
this.type = type
this.title = title
}
}
module.exports = Exercise
module.exports = Activity
and to call it
...exercise: new Exercise(null, card.type, 'Exercise Title')
Is this a good pratice? make sense to do this?