diff --git a/README.md b/README.md index 2d87acb..7221205 100644 --- a/README.md +++ b/README.md @@ -47,18 +47,18 @@ import { VueContext } from 'vue-context'; new Vue({ components: { - VueContext + VueContext }, methods: { - /** - * Alert the text of the menu item that was clicked on. - * - * @param {string} text - */ - onClick (text) { + /** + * Alert the text of the menu item that was clicked on. + * + * @param {string} text + */ + onClick (text) { alert(`You clicked ${text}!`); - } + } } }).$mount('#app'); ``` @@ -124,22 +124,22 @@ import { VueContext } from 'vue-context'; new Vue({ components: { - VueContext + VueContext }, methods: { - /** - * Alert the text of the menu item that was clicked on. - * Console log the data sent from the menu. - * - * @param {string} text - * @param {object} data - */ - onClick (text, data) { + /** + * Alert the text of the menu item that was clicked on. + * Console log the data sent from the menu. + * + * @param {string} text + * @param {object} data + */ + onClick (text, data) { alert(`You clicked ${text}!`); console.log(data); // => { foo: 'bar' } - } + } } }).$mount('#app'); ``` diff --git a/test/index.html b/test/index.html index 64d2f50..0dd8e5b 100644 --- a/test/index.html +++ b/test/index.html @@ -1,23 +1,23 @@ -
- -- Right click on me -
+ + ++ Right click on me +
-