Answer the question
In order to leave comments, you need to log in
How to properly link Backend and Vue.js (Frontend)?
Hello! I am essentially a full stack developer, I write the back-end on ASP.NET MVC (I used to write on PHP), and the front-end on jQuery sausages. Still, lately I've been getting annoyed with rewriting jQuery code from project to project. All sorts of trivial things, such as pagination, sorting, its own "library" for working with tables - somehow similar to the component implementation, but there are a lot of "BUT":
Answer the question
In order to leave comments, you need to log in
laracasts.com - watch the tutorials to understand the essence of vue development, then it's a matter of practice and documentation. "Change right - wrong change" - you just need to start rewriting the code, page by page. When you are already fluent (and vue is quite light, not more complicated than jquery for sure), you can think about the fact that the architecture turned out to be somewhat clumsy (but this is your first application on vue, so it’s okay) and you should put the code into components here, and then write general filters, etc. Well, it’s not necessary to abandon jquery if anything, although you most likely won’t need it.
At first, there may be problems with the integration of third-party js plugins that you do not understand well or that are written frankly poorly. The first ones should be studied and implemented as components and only components (I had similar problems at the start in the datatables plugin, I found an article where the author integrated them as a component and did it by analogy, after that I was imbued with vue components), the second ones should be thrown out and forgotten about them like a bad dream.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question