You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
- The browser must support the Custom Element API (currently Chrome only), or you need to include Polymer's [platform.js polyfill](https://www.polymer-project.org/docs/start/platform.html).
9
+
10
+
## Installation
11
+
12
+
Available through npm, Component, Duo or Bower.
13
+
14
+
### Direct include
15
+
16
+
If you are using Vue globally, just include `vue-element.js` and it will automatically install the `Vue.element` method.
17
+
18
+
### CommonJS
19
+
20
+
```js
21
+
Vue.use(require('vue-element')) // installed
22
+
Vue.element({ /* ... */ })
23
+
```
24
+
25
+
## Usage
26
+
27
+
Usage is the same as `Vue.component` - you pass in exactly the same options as if you are defining a Vue component. Two things to note:
28
+
29
+
- You don't need to manually instantiate a root level Vue instance. Custom Elements get auto-promoted when `document.registerElement` is called. You can also freely define the element before or after the markup.
30
+
31
+
- You can expose attributes with Vue's `paramAttributes` option. See the example folder to see it in action.
0 commit comments