Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register vue-chartjs as vue-plugin? #168

Closed
apertureless opened this issue Aug 11, 2017 · 0 comments
Closed

Register vue-chartjs as vue-plugin? #168

apertureless opened this issue Aug 11, 2017 · 0 comments
Assignees
Milestone

Comments

@apertureless
Copy link
Owner

💁 Current state

Right now you import the transpiled vue components as es modules.

You can either import the whole object which contain all components and mixins

import VueChartJs from 'vue-chartjs'

or you can import the individual modules

import {Bar, Line} from 'vue-chartjs'

📰 Proposal

In addition to this, it might be a good idea to utilize the vue plugin register functions. So you can use vue-chartjs with

import VueChartJs from 'vue-chartjs'
Vue.use(VueChartJs)

This may would make things easier for people using it with SSR / nuxtjs. As nuxt requires a vue plugin to disable ssr.

Thoughts on this? 💭

📊 Poll



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant