Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Vue materiails integration #7

Closed
ribsousa opened this issue Sep 24, 2016 · 2 comments
Closed

Vue materiails integration #7

ribsousa opened this issue Sep 24, 2016 · 2 comments

Comments

@ribsousa
Copy link

ribsousa commented Sep 24, 2016

Could you help me integrate vue-materials components in oc-vuetober-theme!

https://github.com/johnleider/vue-materials

I installed via npm

npm install vue-materials

Then I created a file called src\app\plugins\ vue-materials.js

import Vue from 'vue'
import Materials from 'vue-materials'

Vue.use(Materials)

and added the require in file src\app\ boot.js

//
// Plugins
//
require('./plugins/vue-materials')

It's right?

thanks!

@scottbedard
Copy link
Owner

Hi, that is close, but you installed the package globally instead of locally.

You need to run

npm install --save vue-materials

or

npm install --save-dev  vue-materials

Note the --save or --save-dev flags. It doesn't really matter which you pick, it just depends on your preferences. Let me know if this helps, good luck!

@ribsousa
Copy link
Author

It worked well now!
Thank you!

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

No branches or pull requests

2 participants