Skip to content

Commit

Permalink
docs: Add docs for globally installing the component
Browse files Browse the repository at this point in the history
  • Loading branch information
rkunev committed Jun 20, 2019
1 parent 2a2eab7 commit d485725
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,14 @@ You can also use the minified sources directly:
</script>
</body>
```

## Using the component globally

If you don't want to register the component everywhere it's used you can instead register it globally:

```js
import ColorPicker from '@radial-color-picker/vue-color-picker';
import '@radial-color-picker/vue-color-picker/dist/vue-color-picker.min.css';

Vue.use(ColorPicker);
```

0 comments on commit d485725

Please sign in to comment.