S
S
sumrakx2019-01-07 07:28:29
Vue.js
sumrakx, 2019-01-07 07:28:29

What part of MVC does the VUE component belong to?

I study VUE in parallel and MVC. I can't quite figure out the structure. Is it correct to say that the vue-component is a controller or is it a view component of MVC?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TCloud, 2019-01-07
@OTCloud

Without any relativity, it's worth saying that the vue component is part of the "View". However, Vue.js components do not work without the built-in Control part of the Vue.js framework itself.
That is, in fact, you describe an object and Vue.js using your controls generates a component ( DOM object )
Everything seems simple.
However, I would look at Vue.js from the point of view of the MVP pattern

P
Pavel, 2019-01-07
@yapaha

Vue is not part of MVC but part of MVVM (Model-View-ViewModel) template and Vue is ViewModel
https://012.vuejs.org/guide/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question