mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-05 14:04:44 +00:00
Finish installation docs
This commit is contained in:
parent
0526bc9544
commit
2f7c4bd68c
1 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ var VueMaterial = require('vue-material');
|
|||
</code-block>
|
||||
<small>* Others package managers like JSPM and Bower are not supported yet.</small>
|
||||
|
||||
<p>Or <a href="https://github.com/marcosmoura/vue-material/archive/master.zip" target="_blank" rel="noopener">download</a> from Github and reference the script and the stylesheet in yout HTML:</p>
|
||||
<p>Or <a href="https://github.com/marcosmoura/vue-material/archive/master.zip" target="_blank" rel="noopener">download</a> from Github and reference the script and the stylesheet in your HTML:</p>
|
||||
<code-block lang="xml">
|
||||
<link rel="stylesheet" href="path/to/vue-material.css">
|
||||
<script src="path/to/vue-material.js"></script>
|
||||
|
|
@ -28,13 +28,13 @@ var VueMaterial = require('vue-material');
|
|||
</single-page-section>
|
||||
|
||||
<single-page-section label="Usage">
|
||||
<p>Enable Vue Material in your application using enableAll method. If you want to enable only some components you can enable them using <code>Vue.use()</code>:</p>
|
||||
<p>Enable Vue Material in your application using <code>Vue.use()</code>. You can always enable individual components:</p>
|
||||
<code-block lang="javascript">
|
||||
Vue.use(VueMaterial);
|
||||
|
||||
// OR
|
||||
|
||||
Vue.use(VueMaterial.MdCore); //Required to make all components work
|
||||
Vue.use(VueMaterial.MdCore); //Required to boot vue material
|
||||
Vue.use(VueMaterial.MdButton);
|
||||
Vue.use(VueMaterial.MdIcon);
|
||||
Vue.use(VueMaterial.MdSidenav);
|
||||
|
|
@ -43,7 +43,7 @@ Vue.use(VueMaterial.MdToolbar);
|
|||
</single-page-section>
|
||||
|
||||
<single-page-section label="Apply theme">
|
||||
<p>Right now, to get Vue Material working properly, you'll need configure and apply a default theme.</p>
|
||||
<p>To get Vue Material working properly, you'll need to configure and apply a default theme.</p>
|
||||
<code-block lang="javascript">
|
||||
Vue.material.theme.register('default', {
|
||||
primary: 'cyan',
|
||||
|
|
|
|||
Loading…
Reference in a new issue