vue-filter icon indicating copy to clipboard operation
vue-filter copied to clipboard

Documentation flaws which make readers confusing

Open boxsnake opened this issue 7 years ago • 3 comments

I noticed that in the documentations, there are some flaws which make readers confusing.

  1. In github's documents, it uses filter(params) format, while in NPM documents, it uses filter params. I tested in Vue 2.x.x, only filter(params) works. I think the documentation differences will make user confusing.

  2. In both Github and Npm documents, it says Vue.install(VueFilter) to manually install this filter bundle. However, when I tested in Vue 2.x.x, install is not a valid function of Vue, users should use Vue.use(VueFilter) instead.

boxsnake avatar May 03 '17 03:05 boxsnake

@boxsnake I update README last time, but I don't publish it on NPM, so there are some difference. thanks for you remind, I will publish the change to NPM soon.

wy-ei avatar May 03 '17 14:05 wy-ei

does this supports es2015? like "import filters in 'vue-filter'" ? Vue.use(filters), and then how to use it in components?

ee07b577 avatar Jul 20 '17 08:07 ee07b577

求时间戳转几分钟前几小时前几天前的过滤器

jackie-cheng avatar Sep 22 '17 02:09 jackie-cheng