-
Notifications
You must be signed in to change notification settings - Fork 141
Make own Vue components available on all pages #700
Comments
Thanks for that proposition - is possible by extending the root vue object, I will add documentation soon. https://github.com/scriptPilot/app-framework/blob/master/docs/extend-vue-root-object.md |
thanks for your quick response! |
So I can get it to work if i create the component within the vue file like so: module.exports = (vue) => { but I want to create a single file component with its own style tag, e.g. custom-toolbar.vue can you please explain briefly how to do this after extending the root vue object? |
Thank you for such a fast reply - thats great :) |
Hey just to let you know the documentation is great but you made a little mistake that might confuse people:
Thanks again for writing that documentation so quickly! |
In the documentation of framework7+vue it is clear how to create your own reusable components but I cant find any documentation on this for app-framework? you only seem to describe how to create and register pages. How do I create a component that I can reuse in templates. For instance If i make my own button template - where do I create this file and how do I register the button so that it is available globally in templates e.g. <my-custom-button></my-custom-button>
The text was updated successfully, but these errors were encountered: