is there any risk to use a vue.js with Umbraco in the same project?
because both of them are executed at runtime?
and if there is? what is it and how to avoid them?
There should be no risk. The only question is how you plan to get content data. You can use the view to initialize the data......or you can use WebApi calls to fetch it. I'd think for something like a list of blog entries, you probably want to have at least a smattering of blog posts in the initial data. And for something like filtering/sorting the list, Vue would be a much nicer user experience compared to a page reload.
using vue.js with Umbraco
is there any risk to use a vue.js with Umbraco in the same project? because both of them are executed at runtime? and if there is? what is it and how to avoid them?
Hi Musab
Do you want to use VuewJs in the back office or frontend?
On the frontend it's 100% safe.
no not in the back office can I use the full power of VuewJs with a razor at the same time?
Can you give me some insights about how to use VueJs in Umbraco projects
Sorry, but no, I didn't use it in the back office.
hi Alex
I don't want to use it in the back office!
I want to use it in the frontend
Hi Mus'ab
THen use it! There is no problems with VueJs in the frontend. Let us know how it goes.
Thanks,
Alex
Hi Mus'ab,
For a project we created a website using vuejs only. There is no limitations at all to do so.
We created a umbraco instance and developed a webservice to make the content avaible for the vuejs application.
The vuejs communicate with the webservice to get its content from Umbraco.
What we did was some kind of headless approach.
There is also a package: https://github.com/rasmusjp/umbraco-graphql what can be handy it makes all the content avaible trough grahql.
Greetz Julien
There should be no risk. The only question is how you plan to get content data. You can use the view to initialize the data......or you can use WebApi calls to fetch it. I'd think for something like a list of blog entries, you probably want to have at least a smattering of blog posts in the initial data. And for something like filtering/sorting the list, Vue would be a much nicer user experience compared to a page reload.
is working on a reply...