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)
import TestSample from "@/components/TestSample";
import { shallowMount, createLocalVue } from '@vue/test-utils'
import VueRouter from 'vue-router'
const localVue = createLocalVue()
localVue.use(VueRouter)
describe('TestSample.vue', () => {
test('renders props.msg when passed', () => {
const msg = 'new message'
const wrapper = shallowMount(TestSample, {
props: { msg }
})
expect(wrapper.text()).toMatch(msg)
});
})
TypeError: (0 , _testUtils.createLocalVue) is not a function
3 | import VueRouter from 'vue-router'
4 |
> 5 | const localVue = createLocalVue()
| ^
6 | localVue.use(VueRouter)
Error: Unknown option: .devServer. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.
at throwUnknownError (/Users/aman/Desktop/Vue/vue01/node_modules/@babel/core/lib/config/validation/options.js:124:27)
I want to install vue 3 cli. I, however, don't get what I want. I did the followings:
npm uninstall vue-cli
vue --version (I get 2.4.2)
npm install -g @vue/cli
vue --version (I still get the 2.4.2)
vue create my-vue-project (I didn't get a command prompt for generating a vue project)
What do I do wrong?
which vue
to identify where it's installed
I have a problem:
const actions = {
fetchData({ commit }) {
commit('loadingStatus', true);
return axios.get(`someUrl`)
.then(response => {
if(response.status == 200) {
commit('setData', response.data),
commit('loadingStatus', false);
} else {
commit('loadingStatus', true);
}
})
.catch(
error => {
console.log(error);
}
);
}
}
methods: {
...mapActions(["fetchData"]),
launchFetchData() {
this.fetchData()
if(!this.$store.getters.loadingStatus) {
this.$router.push("admin/dashboard")
}
}
},
why my this.$router.push("admin/dashboard")
not work when loadingStatus
is set on true
?
Published PWA-Badge library with 100% code coverage 🥳
Like Native Apps, The App Badge API allows installed web apps to set an application-wide badge, shown in an operating-system-specific place associated with the application (such as the shelf or home screen).
Badges tend to be more user-friendly than notifications and can be updated with a much higher frequency since they don't interrupt the user. And, because they don't interrupt the user, they don't need the user's permission.
For supporting me, Please click on the Star button on Github and Share this post and finally send the Repo to your friends.
Github Repo:
https://github.com/ali-master/pwa-badge
how to use methods of ionic slides element in vue
https://ionicframework.com/docs/api/slides#methods
click a btn to go to next slide etc