Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit 0adf7f8

Browse files
LukaszWiktormariomka
authored andcommitted
Readme - register component when using CDN (#193)
* Readme - add a note about auto-registration in the browser
1 parent b8084aa commit 0adf7f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ Download vue, luxon, weekstart and vue-datetime or use a CDN like unpkg.
7777
<script src="vue-datetime.js"></script>
7878
```
7979

80+
The component registers itself automatically as `<datetime>`. If you want to use a different name then register it explicitly:
81+
82+
```js
83+
Vue.component('vue-datetime', window.VueDatetime.Datetime);
84+
```
85+
86+
8087
**weekstart** is optional, is used to get the first day of the week.
8188

8289
## Usage

0 commit comments

Comments
 (0)