Skip to content

Commit 33d1734

Browse files
ikoevskarigor789
authored andcommitted
Added more information about registerElement (#158)
Also addresses #36
1 parent c682954 commit 33d1734

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/docs/en/getting-started/5-nativescript-plugins.md

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Open your app entry file (llikely `app.js` or `main.js`) and add the following l
3333
Vue.registerElement('Gradient', () => require('nativescript-gradient').Gradient)
3434
```
3535

36+
This requires and registers the plugin in your `Vue` instance. The `registerElement` function expects the name of the `<Element>` as the first argument, and a function that returns the plugin as its second argument. Provide the element name exactly as you are supposed to call it in your code. Provide the plugin name exactly as its npm package name.
37+
3638
### Use the plugin in your app
3739

3840
```HTML

0 commit comments

Comments
 (0)