Can we mix code with view or we have to choose between old and new style? If we can mix code migration would be much easier and can be done step by step.
Not sure I understand the question, but if you mean whether the Composition API (using setup function) that's available in Vue3 is mandatory, or precludes one from using class-based component definition (Γ la Vue2). The answer is that you can mix them. Here is an example that has two components (using same template)
Can we mix code with view or we have to choose between old and new style? If we can mix code migration would be much easier and can be done step by step.
Not sure I understand the question, but if you mean whether the Composition API (using setup function) that's available in Vue3 is mandatory, or precludes one from using class-based component definition (Γ la Vue2). The answer is that you can mix them. Here is an example that has two components (using same template)
jsfiddle.net/dapo/9hunLqgk/
Exactly what I mean, and thank you very much for the sample code.