SlideShare a Scribd company logo
Basic Introduction
Leading front-end frameworks like Angular, React, and Vue.JS are usually accessible, making it simple
for developers to create reliable web apps. Vue.js is the only framework of this type that can be used
to create rich user interfaces.
Which version should you use if you're absolutely new to working with VueJS? might be the first
thought that comes to mind. Right. Almost all businesses employ Vue 2, which is now available on
the market, to build responsive web applications.
With the release of Vue 3, developers are interested in learning about the technical principles added
to the most recent version of Vue. Vue 3 has developed novel features that speed up your
application and come with useful libraries to increase the responsiveness of your online project.
History of Vue.JS Framework
We need to start with the framework trip before
we can begin to grasp the idea of the distinction
between Vue 2 and Vue 3. Initially, Vue.js was
just a straightforward runtime library. It changed
over time from being a library to a framework.
And certainly, Vue.js is now well recognized as a
user-friendly, effective, and adaptable
framework that is essential for creating web user
interfaces.
What Is Vue 2?
Exactly four years before Vue 3, in October 2016,
Vue 2 was released. Vue 2 quickly established a
reputation as a flexible, lightweight, and lightweight
programming framework. It was used by
programmers to make responsive and advanced web
interfaces that worked well with other technologies.
Due to both its many advantages and Vue 3's recent
release, Vue 2 is still in use by businesses all over the
world. The ecosystem has enough time to transition
to Vue 3 because Vue 2 is expected to reach end-of-
life by the end of 2023.
What Is Vue 3?
As a more manageable, quicker, and more compact
version of Vue 2, Vue 3 was introduced. Along with
updating the framework with new capabilities, Vue 3
also fixes some of Vue 2's flaws.
With more code, Vue 2's code is prone to complexity
and readability issues. While having a syntax that is
quite similar to Vue 2, Vue 3 seeks to address this
problem as well as a number of others.
Difference Between Vue 2 vs Vue 3
โ— Creating a New Application
โ— Multiple Roots
โ— Fragments
โ— Setting Up Data
โ— Creating Methods
โ— Lifecycle Hooks
Knowing the precise technological differences between Vue 2 and Vue 3 can help you pick between
the two wisely. Even if you are not technically inclined, these distinctions will make the other
arguments in this article easier to understand.
The major differences between Vue 2 and Vue 3 are shown below:
โ— Computed Properties
โ— Accessing Props
โ— Emitting Events
โ— Portals
โ— Initialization Code
Creating a New Application:
While building an application from scratch, one of the obvious differences between Vue 2 and Vue 3
will become apparent. Installing the Vue CLI is required to start the process (Command Line
Interface). Vue 2 and Vue 3 have different commands for this:
โ— Vue 2: npm install vue@2.x.x
โ— Vue 3: npm install vue
Multiple Roots:
When compared to Vue 3, this limitation is removed. Vue 2 only permits the implementation of one
root node in the template. Multiple roots can now be added by developers to a single template.
Fragments:
The process of generating the same component in Vue 3 as opposed to Vue 2 differs since
components can now have many root nodes (thanks to the addition of fragments). In Vue 3, the
'reactive' option is used to access data while building a component; this is not possible in Vue 2.
Setting Up Data:
Composition API was one of the key changes made in Vue 3. The Vue 2 Options API necessitates the
division of code into various properties. On the other side, grouping the code by function as opposed
to property type is possible using Vue 3's Composition API.
Creating Methods:
In comparison to Vue 3, creating methods differ differently in Vue 2. In Vue 2, you may utilize the
Options API to declare all of your methods at once and arrange them however you like.
The Composition API in Vue 3 requires specifying methods and then "returning" them so that other
components of your component can access them, though.
Lifecycle Hooks:
The component options in Vue 2 provide direct access to lifecycle hooks. However, virtually
everything in Vue 3 (including lifecycle hooks) is included within the setup() method.
In Vue 3, lifecycle hooks must be imported before being utilized inside the setup() method.
Computed Properties:
By including a "calculated" field in the options object, users of Vue 2 can use computed properties.
However, in order to use 'computed' in the setup() method in Vue 3, developers must first import it
into the component.
This update was made to stop the habit of importing unused packages, which was present in Vue 2.
Accessing Props:
The word "this" was always used in Vue 2 to refer to the component rather than any particular
property. Additionally, access to "props" was simple. However, "this" is no longer used to refer to
access properties in Vue 3. To access props, use the setup() method's 'props' and 'context'
arguments.
Emitting Events:
The way that Vue 3 and Vue 2 both emit events is also different. In Vue 2, you may easily emit an
event to a parent component by using the simple syntax "this.$emit". However, Vue 3 allows you
more flexibility when it comes to accessing properties or methods.
The 'context' object is added as the second parameter to the setup() method in Vue 3 to do this. The
event can then be sent to the parent component by simply using "emit."
Portals:
With the gateway functionality, you can translate a portion of code from one component into
another component in a different DOM tree. This was accomplished using a third-party plugin called
portal-vue in Vue 2.
A built-in portal in Vue 3 is used to accomplish the same goal. Any code that needs to be prepared
for teleportation is enclosed in a special tag called <teleport>.
Initialization Code:
CreateApp is a new method that is introduced to initialize the app in Vue 3 compared to Vue 2. The
result of this method is a fresh instance of a Vue app. Without compromising the functionality of the
other instances, each instance can work independently.
const app1 = createApp({})
const app2 = createApp({})
app1.directive('focus', {
inserted: el => el.focus()
})
app2.mixin({
/* ... */
})
Even though it is uncommon to develop many apps within one application, doing so could be useful
if the project expands in scope. Compared to Vue 2, it is now possible to configure each app as a
separate object with Vue 3. It is also feasible to combine various features from different instances.
Summary of Vue 2 vs Vue 3
After comparing the significant new changes between Vue 2 and Vue 3, we can state that:
โ— Compared to Vue 2, Vue 3 is rumored to be quicker, smaller, easier to maintain, and more
natively targettable.
โ— With some new and noteworthy updates and functionality, Vue 3 is essentially a rewrite of Vue
2.
โ— Both Vue 2 and Vue 3 have very similar fundamental syntax.
However, if you have any questions about developing a new web application with the VueJS
framework or want to switch to Vue 3, don't hesitate to get in touch with us. Albiorix Technology is a
leading Vue.js development company having a team of talented developers to provide the best
optimum IT solutions
Contact Us:
(+91) 991-308-8360 / +1 (912) 528-5566
inquiry@albiorixtech.com
live:albiorix.tech
For More Information Visit Us At:
www.albiorixtech.com
THANK YOU

More Related Content

What's hot

Why Vue.js?
Why Vue.js?Why Vue.js?
Why Vue.js?
Jonathan Goode
ย 
VueJS Introduction
VueJS IntroductionVueJS Introduction
VueJS Introduction
David Liฤen
ย 
Vue.js
Vue.jsVue.js
Vue.js
Jadson Santos
ย 
Basics of VueJS
Basics of VueJSBasics of VueJS
Basics of VueJS
Squash Apps Pvt Ltd
ย 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.js
Javier Lafora Rey
ย 
Vue, vue router, vuex
Vue, vue router, vuexVue, vue router, vuex
Vue, vue router, vuex
Samundra khatri
ย 
The Point of Vue - Intro to Vue.js
The Point of Vue - Intro to Vue.jsThe Point of Vue - Intro to Vue.js
The Point of Vue - Intro to Vue.js
Holly Schinsky
ย 
React Native
React NativeReact Native
React Native
Software Infrastructure
ย 
Build Automation using Maven
Build Automation using Maven Build Automation using Maven
Build Automation using Maven
Ankit Gubrani
ย 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
Sambhu Lakshmanan
ย 
Vue js for beginner
Vue js for beginner Vue js for beginner
Vue js for beginner
Chandrasekar G
ย 
Introduction to react native
Introduction to react nativeIntroduction to react native
Introduction to react native
Dani Akash
ย 
React hooks
React hooksReact hooks
React hooks
Assaf Gannon
ย 
React Native
React Native React Native
React Native
vishal kumar
ย 
ReactJS presentation.pptx
ReactJS presentation.pptxReactJS presentation.pptx
ReactJS presentation.pptx
DivyanshGupta922023
ย 
React Native Workshop
React Native WorkshopReact Native Workshop
React Native Workshop
Amazon Web Services
ย 
NEXT.JS
NEXT.JSNEXT.JS
NEXT.JS
Binumon Joseph
ย 
React vs Angular
React vs Angular React vs Angular
React vs Angular
Appinventiv
ย 
Using VueJS in front of Drupal 8
Using VueJS in front of Drupal 8Using VueJS in front of Drupal 8
Using VueJS in front of Drupal 8
Brian Ward
ย 
Introduction to VueJS & Vuex
Introduction to VueJS & VuexIntroduction to VueJS & Vuex
Introduction to VueJS & Vuex
Bernd Alter
ย 

What's hot (20)

Why Vue.js?
Why Vue.js?Why Vue.js?
Why Vue.js?
ย 
VueJS Introduction
VueJS IntroductionVueJS Introduction
VueJS Introduction
ย 
Vue.js
Vue.jsVue.js
Vue.js
ย 
Basics of VueJS
Basics of VueJSBasics of VueJS
Basics of VueJS
ย 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.js
ย 
Vue, vue router, vuex
Vue, vue router, vuexVue, vue router, vuex
Vue, vue router, vuex
ย 
The Point of Vue - Intro to Vue.js
The Point of Vue - Intro to Vue.jsThe Point of Vue - Intro to Vue.js
The Point of Vue - Intro to Vue.js
ย 
React Native
React NativeReact Native
React Native
ย 
Build Automation using Maven
Build Automation using Maven Build Automation using Maven
Build Automation using Maven
ย 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
ย 
Vue js for beginner
Vue js for beginner Vue js for beginner
Vue js for beginner
ย 
Introduction to react native
Introduction to react nativeIntroduction to react native
Introduction to react native
ย 
React hooks
React hooksReact hooks
React hooks
ย 
React Native
React Native React Native
React Native
ย 
ReactJS presentation.pptx
ReactJS presentation.pptxReactJS presentation.pptx
ReactJS presentation.pptx
ย 
React Native Workshop
React Native WorkshopReact Native Workshop
React Native Workshop
ย 
NEXT.JS
NEXT.JSNEXT.JS
NEXT.JS
ย 
React vs Angular
React vs Angular React vs Angular
React vs Angular
ย 
Using VueJS in front of Drupal 8
Using VueJS in front of Drupal 8Using VueJS in front of Drupal 8
Using VueJS in front of Drupal 8
ย 
Introduction to VueJS & Vuex
Introduction to VueJS & VuexIntroduction to VueJS & Vuex
Introduction to VueJS & Vuex
ย 

Similar to Vue 2 vs Vue 3.pptx

Vue js & vue cli 3 plugins to boost up the performance of your application
Vue js & vue cli 3 plugins to boost up the performance of your applicationVue js & vue cli 3 plugins to boost up the performance of your application
Vue js & vue cli 3 plugins to boost up the performance of your application
Katy Slemon
ย 
Introducing Windows Azure
Introducing Windows AzureIntroducing Windows Azure
Introducing Windows Azure
Ismail Muhammad
ย 
Azure services platform
Azure services platformAzure services platform
Azure services platformDhairyaVora49
ย 
Azure services platform
Azure services platformAzure services platform
Azure services platform
jonsn
ย 
Windows Azure David Chappell White Paper March 09
Windows Azure David Chappell White Paper March 09Windows Azure David Chappell White Paper March 09
Windows Azure David Chappell White Paper March 09guest120d945
ย 
Background Tasks with Worker Service
Background Tasks with Worker ServiceBackground Tasks with Worker Service
Background Tasks with Worker Service
ssusere19c741
ย 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-ee
homeworkping3
ย 
What is Vuejs.pptx
What is Vuejs.pptxWhat is Vuejs.pptx
What is Vuejs.pptx
NhnHVn2
ย 
Inversion of control using dependency injection in Web APIs using Unity Conta...
Inversion of control using dependency injection in Web APIs using Unity Conta...Inversion of control using dependency injection in Web APIs using Unity Conta...
Inversion of control using dependency injection in Web APIs using Unity Conta...
Akhil Mittal
ย 
Vue Or React - Which One is the Best_.pptx
Vue Or React - Which One is the Best_.pptxVue Or React - Which One is the Best_.pptx
Vue Or React - Which One is the Best_.pptx
75waytechnologies
ย 
Why do JavaScript enthusiast think of Vue.js for building real-time web appli...
Why do JavaScript enthusiast think of Vue.js for building real-time web appli...Why do JavaScript enthusiast think of Vue.js for building real-time web appli...
Why do JavaScript enthusiast think of Vue.js for building real-time web appli...
Katy Slemon
ย 
Developing microservices with Java and applying Spring security framework and...
Developing microservices with Java and applying Spring security framework and...Developing microservices with Java and applying Spring security framework and...
Developing microservices with Java and applying Spring security framework and...
IRJET Journal
ย 
Seminar_report on Microsoft Azure Service
Seminar_report on Microsoft Azure ServiceSeminar_report on Microsoft Azure Service
Seminar_report on Microsoft Azure Service
ANAND PRAKASH
ย 
Google app engine
Google app engineGoogle app engine
Google app engine
Suraj Mehta
ย 
2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday
Ivanti
ย 
2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday
Shazia464689
ย 
Exploring the Exciting Features of Spring Boot 3.1.pdf
Exploring the Exciting Features of Spring Boot 3.1.pdfExploring the Exciting Features of Spring Boot 3.1.pdf
Exploring the Exciting Features of Spring Boot 3.1.pdf
Inexture Solutions
ย 
Angular 8
Angular 8 Angular 8
Angular 8
Sunil OS
ย 
Introducing Azure Services Platform V1
Introducing Azure Services Platform V1Introducing Azure Services Platform V1
Introducing Azure Services Platform V1guest120d945
ย 
2008.12.23 CompoWeb
2008.12.23 CompoWeb2008.12.23 CompoWeb
2008.12.23 CompoWeb
xoanon
ย 

Similar to Vue 2 vs Vue 3.pptx (20)

Vue js & vue cli 3 plugins to boost up the performance of your application
Vue js & vue cli 3 plugins to boost up the performance of your applicationVue js & vue cli 3 plugins to boost up the performance of your application
Vue js & vue cli 3 plugins to boost up the performance of your application
ย 
Introducing Windows Azure
Introducing Windows AzureIntroducing Windows Azure
Introducing Windows Azure
ย 
Azure services platform
Azure services platformAzure services platform
Azure services platform
ย 
Azure services platform
Azure services platformAzure services platform
Azure services platform
ย 
Windows Azure David Chappell White Paper March 09
Windows Azure David Chappell White Paper March 09Windows Azure David Chappell White Paper March 09
Windows Azure David Chappell White Paper March 09
ย 
Background Tasks with Worker Service
Background Tasks with Worker ServiceBackground Tasks with Worker Service
Background Tasks with Worker Service
ย 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-ee
ย 
What is Vuejs.pptx
What is Vuejs.pptxWhat is Vuejs.pptx
What is Vuejs.pptx
ย 
Inversion of control using dependency injection in Web APIs using Unity Conta...
Inversion of control using dependency injection in Web APIs using Unity Conta...Inversion of control using dependency injection in Web APIs using Unity Conta...
Inversion of control using dependency injection in Web APIs using Unity Conta...
ย 
Vue Or React - Which One is the Best_.pptx
Vue Or React - Which One is the Best_.pptxVue Or React - Which One is the Best_.pptx
Vue Or React - Which One is the Best_.pptx
ย 
Why do JavaScript enthusiast think of Vue.js for building real-time web appli...
Why do JavaScript enthusiast think of Vue.js for building real-time web appli...Why do JavaScript enthusiast think of Vue.js for building real-time web appli...
Why do JavaScript enthusiast think of Vue.js for building real-time web appli...
ย 
Developing microservices with Java and applying Spring security framework and...
Developing microservices with Java and applying Spring security framework and...Developing microservices with Java and applying Spring security framework and...
Developing microservices with Java and applying Spring security framework and...
ย 
Seminar_report on Microsoft Azure Service
Seminar_report on Microsoft Azure ServiceSeminar_report on Microsoft Azure Service
Seminar_report on Microsoft Azure Service
ย 
Google app engine
Google app engineGoogle app engine
Google app engine
ย 
2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday
ย 
2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday
ย 
Exploring the Exciting Features of Spring Boot 3.1.pdf
Exploring the Exciting Features of Spring Boot 3.1.pdfExploring the Exciting Features of Spring Boot 3.1.pdf
Exploring the Exciting Features of Spring Boot 3.1.pdf
ย 
Angular 8
Angular 8 Angular 8
Angular 8
ย 
Introducing Azure Services Platform V1
Introducing Azure Services Platform V1Introducing Azure Services Platform V1
Introducing Azure Services Platform V1
ย 
2008.12.23 CompoWeb
2008.12.23 CompoWeb2008.12.23 CompoWeb
2008.12.23 CompoWeb
ย 

More from Albiorix Technology

JavaScript Frameworks Popularity
JavaScript Frameworks PopularityJavaScript Frameworks Popularity
JavaScript Frameworks Popularity
Albiorix Technology
ย 
Top Mobile App Development Trends For Your Business
Top Mobile App Development Trends For Your BusinessTop Mobile App Development Trends For Your Business
Top Mobile App Development Trends For Your Business
Albiorix Technology
ย 
๐€๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐š๐œ๐ญ๐ข๐ฏ๐ž ๐’๐ž๐ฌ๐ฌ๐ข๐จ๐ง ๐จ๐ง ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐๐ ๐‘๐ฑ ๐›๐ฒ ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ ๐“๐ž๐š๐ฆ
๐€๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐š๐œ๐ญ๐ข๐ฏ๐ž ๐’๐ž๐ฌ๐ฌ๐ข๐จ๐ง ๐จ๐ง ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐๐ ๐‘๐ฑ ๐›๐ฒ ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ ๐“๐ž๐š๐ฆ๐€๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐š๐œ๐ญ๐ข๐ฏ๐ž ๐’๐ž๐ฌ๐ฌ๐ข๐จ๐ง ๐จ๐ง ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐๐ ๐‘๐ฑ ๐›๐ฒ ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ ๐“๐ž๐š๐ฆ
๐€๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐š๐œ๐ญ๐ข๐ฏ๐ž ๐’๐ž๐ฌ๐ฌ๐ข๐จ๐ง ๐จ๐ง ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐๐ ๐‘๐ฑ ๐›๐ฒ ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ ๐“๐ž๐š๐ฆ
Albiorix Technology
ย 
What are the Top Technology Trends For Your Business?
What are the Top Technology Trends For Your Business?What are the Top Technology Trends For Your Business?
What are the Top Technology Trends For Your Business?
Albiorix Technology
ย 
What is Web Application Development?
What is Web Application Development?What is Web Application Development?
What is Web Application Development?
Albiorix Technology
ย 
What is ReactJS?
What is ReactJS?What is ReactJS?
What is ReactJS?
Albiorix Technology
ย 
Top 11 Mobile App Development Frameworks
Top 11 Mobile App Development FrameworksTop 11 Mobile App Development Frameworks
Top 11 Mobile App Development Frameworks
Albiorix Technology
ย 
What Is A Technology Stack?
What Is A Technology Stack?What Is A Technology Stack?
What Is A Technology Stack?
Albiorix Technology
ย 
What is Promise in Angular Development?
What is Promise in Angular Development?What is Promise in Angular Development?
What is Promise in Angular Development?
Albiorix Technology
ย 
Difference Between jQuery and Angular
Difference Between jQuery and AngularDifference Between jQuery and Angular
Difference Between jQuery and Angular
Albiorix Technology
ย 
9 Best JavaScript Frameworks To Choose
9 Best JavaScript Frameworks To Choose9 Best JavaScript Frameworks To Choose
9 Best JavaScript Frameworks To Choose
Albiorix Technology
ย 
Angular vs React
Angular vs ReactAngular vs React
Angular vs React
Albiorix Technology
ย 
Top 7 JavaScript Data Grid Libraries
Top 7 JavaScript Data Grid LibrariesTop 7 JavaScript Data Grid Libraries
Top 7 JavaScript Data Grid Libraries
Albiorix Technology
ย 
Top 10 Angular Development Tools For Developers
Top 10 Angular Development Tools For DevelopersTop 10 Angular Development Tools For Developers
Top 10 Angular Development Tools For Developers
Albiorix Technology
ย 
Resolver in Angular
Resolver in AngularResolver in Angular
Resolver in Angular
Albiorix Technology
ย 
Top Software Development Trends For Your Business
Top Software Development Trends For Your BusinessTop Software Development Trends For Your Business
Top Software Development Trends For Your Business
Albiorix Technology
ย 
Why Software Maintenance is Essential for Business?
Why Software Maintenance is Essential for Business?Why Software Maintenance is Essential for Business?
Why Software Maintenance is Essential for Business?
Albiorix Technology
ย 
Guide to Vite JS โ€“ Modern Fron-End Development Tool
Guide to Vite JS โ€“ Modern Fron-End Development ToolGuide to Vite JS โ€“ Modern Fron-End Development Tool
Guide to Vite JS โ€“ Modern Fron-End Development Tool
Albiorix Technology
ย 
Top 10 Digital Transformation Trends For Business
Top 10 Digital Transformation Trends For BusinessTop 10 Digital Transformation Trends For Business
Top 10 Digital Transformation Trends For Business
Albiorix Technology
ย 
Angular Best Practices To Build Clean and Performant Web Applications
Angular Best Practices To Build Clean and Performant Web ApplicationsAngular Best Practices To Build Clean and Performant Web Applications
Angular Best Practices To Build Clean and Performant Web Applications
Albiorix Technology
ย 

More from Albiorix Technology (20)

JavaScript Frameworks Popularity
JavaScript Frameworks PopularityJavaScript Frameworks Popularity
JavaScript Frameworks Popularity
ย 
Top Mobile App Development Trends For Your Business
Top Mobile App Development Trends For Your BusinessTop Mobile App Development Trends For Your Business
Top Mobile App Development Trends For Your Business
ย 
๐€๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐š๐œ๐ญ๐ข๐ฏ๐ž ๐’๐ž๐ฌ๐ฌ๐ข๐จ๐ง ๐จ๐ง ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐๐ ๐‘๐ฑ ๐›๐ฒ ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ ๐“๐ž๐š๐ฆ
๐€๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐š๐œ๐ญ๐ข๐ฏ๐ž ๐’๐ž๐ฌ๐ฌ๐ข๐จ๐ง ๐จ๐ง ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐๐ ๐‘๐ฑ ๐›๐ฒ ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ ๐“๐ž๐š๐ฆ๐€๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐š๐œ๐ญ๐ข๐ฏ๐ž ๐’๐ž๐ฌ๐ฌ๐ข๐จ๐ง ๐จ๐ง ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐๐ ๐‘๐ฑ ๐›๐ฒ ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ ๐“๐ž๐š๐ฆ
๐€๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐š๐œ๐ญ๐ข๐ฏ๐ž ๐’๐ž๐ฌ๐ฌ๐ข๐จ๐ง ๐จ๐ง ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐๐ ๐‘๐ฑ ๐›๐ฒ ๐€๐ง๐ ๐ฎ๐ฅ๐š๐ซ ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ ๐“๐ž๐š๐ฆ
ย 
What are the Top Technology Trends For Your Business?
What are the Top Technology Trends For Your Business?What are the Top Technology Trends For Your Business?
What are the Top Technology Trends For Your Business?
ย 
What is Web Application Development?
What is Web Application Development?What is Web Application Development?
What is Web Application Development?
ย 
What is ReactJS?
What is ReactJS?What is ReactJS?
What is ReactJS?
ย 
Top 11 Mobile App Development Frameworks
Top 11 Mobile App Development FrameworksTop 11 Mobile App Development Frameworks
Top 11 Mobile App Development Frameworks
ย 
What Is A Technology Stack?
What Is A Technology Stack?What Is A Technology Stack?
What Is A Technology Stack?
ย 
What is Promise in Angular Development?
What is Promise in Angular Development?What is Promise in Angular Development?
What is Promise in Angular Development?
ย 
Difference Between jQuery and Angular
Difference Between jQuery and AngularDifference Between jQuery and Angular
Difference Between jQuery and Angular
ย 
9 Best JavaScript Frameworks To Choose
9 Best JavaScript Frameworks To Choose9 Best JavaScript Frameworks To Choose
9 Best JavaScript Frameworks To Choose
ย 
Angular vs React
Angular vs ReactAngular vs React
Angular vs React
ย 
Top 7 JavaScript Data Grid Libraries
Top 7 JavaScript Data Grid LibrariesTop 7 JavaScript Data Grid Libraries
Top 7 JavaScript Data Grid Libraries
ย 
Top 10 Angular Development Tools For Developers
Top 10 Angular Development Tools For DevelopersTop 10 Angular Development Tools For Developers
Top 10 Angular Development Tools For Developers
ย 
Resolver in Angular
Resolver in AngularResolver in Angular
Resolver in Angular
ย 
Top Software Development Trends For Your Business
Top Software Development Trends For Your BusinessTop Software Development Trends For Your Business
Top Software Development Trends For Your Business
ย 
Why Software Maintenance is Essential for Business?
Why Software Maintenance is Essential for Business?Why Software Maintenance is Essential for Business?
Why Software Maintenance is Essential for Business?
ย 
Guide to Vite JS โ€“ Modern Fron-End Development Tool
Guide to Vite JS โ€“ Modern Fron-End Development ToolGuide to Vite JS โ€“ Modern Fron-End Development Tool
Guide to Vite JS โ€“ Modern Fron-End Development Tool
ย 
Top 10 Digital Transformation Trends For Business
Top 10 Digital Transformation Trends For BusinessTop 10 Digital Transformation Trends For Business
Top 10 Digital Transformation Trends For Business
ย 
Angular Best Practices To Build Clean and Performant Web Applications
Angular Best Practices To Build Clean and Performant Web ApplicationsAngular Best Practices To Build Clean and Performant Web Applications
Angular Best Practices To Build Clean and Performant Web Applications
ย 

Recently uploaded

Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
ย 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
ย 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
ย 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
ย 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
ย 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
ลukasz Chruล›ciel
ย 
Enterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptxEnterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptx
QuickwayInfoSystems3
ย 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
ย 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
ย 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
ย 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
ย 
AI Pilot Review: The Worldโ€™s First Virtual Assistant Marketing Suite
AI Pilot Review: The Worldโ€™s First Virtual Assistant Marketing SuiteAI Pilot Review: The Worldโ€™s First Virtual Assistant Marketing Suite
AI Pilot Review: The Worldโ€™s First Virtual Assistant Marketing Suite
Google
ย 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
ย 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
ย 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
ย 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
ย 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
ย 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
ย 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
ย 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
ย 

Recently uploaded (20)

Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
ย 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
ย 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
ย 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
ย 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
ย 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
ย 
Enterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptxEnterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptx
ย 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
ย 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
ย 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
ย 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
ย 
AI Pilot Review: The Worldโ€™s First Virtual Assistant Marketing Suite
AI Pilot Review: The Worldโ€™s First Virtual Assistant Marketing SuiteAI Pilot Review: The Worldโ€™s First Virtual Assistant Marketing Suite
AI Pilot Review: The Worldโ€™s First Virtual Assistant Marketing Suite
ย 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
ย 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
ย 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
ย 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
ย 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
ย 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
ย 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
ย 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
ย 

Vue 2 vs Vue 3.pptx

  • 1.
  • 2. Basic Introduction Leading front-end frameworks like Angular, React, and Vue.JS are usually accessible, making it simple for developers to create reliable web apps. Vue.js is the only framework of this type that can be used to create rich user interfaces. Which version should you use if you're absolutely new to working with VueJS? might be the first thought that comes to mind. Right. Almost all businesses employ Vue 2, which is now available on the market, to build responsive web applications. With the release of Vue 3, developers are interested in learning about the technical principles added to the most recent version of Vue. Vue 3 has developed novel features that speed up your application and come with useful libraries to increase the responsiveness of your online project.
  • 3. History of Vue.JS Framework We need to start with the framework trip before we can begin to grasp the idea of the distinction between Vue 2 and Vue 3. Initially, Vue.js was just a straightforward runtime library. It changed over time from being a library to a framework. And certainly, Vue.js is now well recognized as a user-friendly, effective, and adaptable framework that is essential for creating web user interfaces.
  • 4. What Is Vue 2? Exactly four years before Vue 3, in October 2016, Vue 2 was released. Vue 2 quickly established a reputation as a flexible, lightweight, and lightweight programming framework. It was used by programmers to make responsive and advanced web interfaces that worked well with other technologies. Due to both its many advantages and Vue 3's recent release, Vue 2 is still in use by businesses all over the world. The ecosystem has enough time to transition to Vue 3 because Vue 2 is expected to reach end-of- life by the end of 2023.
  • 5. What Is Vue 3? As a more manageable, quicker, and more compact version of Vue 2, Vue 3 was introduced. Along with updating the framework with new capabilities, Vue 3 also fixes some of Vue 2's flaws. With more code, Vue 2's code is prone to complexity and readability issues. While having a syntax that is quite similar to Vue 2, Vue 3 seeks to address this problem as well as a number of others.
  • 6. Difference Between Vue 2 vs Vue 3 โ— Creating a New Application โ— Multiple Roots โ— Fragments โ— Setting Up Data โ— Creating Methods โ— Lifecycle Hooks Knowing the precise technological differences between Vue 2 and Vue 3 can help you pick between the two wisely. Even if you are not technically inclined, these distinctions will make the other arguments in this article easier to understand. The major differences between Vue 2 and Vue 3 are shown below: โ— Computed Properties โ— Accessing Props โ— Emitting Events โ— Portals โ— Initialization Code
  • 7. Creating a New Application: While building an application from scratch, one of the obvious differences between Vue 2 and Vue 3 will become apparent. Installing the Vue CLI is required to start the process (Command Line Interface). Vue 2 and Vue 3 have different commands for this: โ— Vue 2: npm install vue@2.x.x โ— Vue 3: npm install vue Multiple Roots: When compared to Vue 3, this limitation is removed. Vue 2 only permits the implementation of one root node in the template. Multiple roots can now be added by developers to a single template.
  • 8. Fragments: The process of generating the same component in Vue 3 as opposed to Vue 2 differs since components can now have many root nodes (thanks to the addition of fragments). In Vue 3, the 'reactive' option is used to access data while building a component; this is not possible in Vue 2. Setting Up Data: Composition API was one of the key changes made in Vue 3. The Vue 2 Options API necessitates the division of code into various properties. On the other side, grouping the code by function as opposed to property type is possible using Vue 3's Composition API.
  • 9. Creating Methods: In comparison to Vue 3, creating methods differ differently in Vue 2. In Vue 2, you may utilize the Options API to declare all of your methods at once and arrange them however you like. The Composition API in Vue 3 requires specifying methods and then "returning" them so that other components of your component can access them, though. Lifecycle Hooks: The component options in Vue 2 provide direct access to lifecycle hooks. However, virtually everything in Vue 3 (including lifecycle hooks) is included within the setup() method. In Vue 3, lifecycle hooks must be imported before being utilized inside the setup() method.
  • 10. Computed Properties: By including a "calculated" field in the options object, users of Vue 2 can use computed properties. However, in order to use 'computed' in the setup() method in Vue 3, developers must first import it into the component. This update was made to stop the habit of importing unused packages, which was present in Vue 2. Accessing Props: The word "this" was always used in Vue 2 to refer to the component rather than any particular property. Additionally, access to "props" was simple. However, "this" is no longer used to refer to access properties in Vue 3. To access props, use the setup() method's 'props' and 'context' arguments.
  • 11. Emitting Events: The way that Vue 3 and Vue 2 both emit events is also different. In Vue 2, you may easily emit an event to a parent component by using the simple syntax "this.$emit". However, Vue 3 allows you more flexibility when it comes to accessing properties or methods. The 'context' object is added as the second parameter to the setup() method in Vue 3 to do this. The event can then be sent to the parent component by simply using "emit." Portals: With the gateway functionality, you can translate a portion of code from one component into another component in a different DOM tree. This was accomplished using a third-party plugin called portal-vue in Vue 2. A built-in portal in Vue 3 is used to accomplish the same goal. Any code that needs to be prepared for teleportation is enclosed in a special tag called <teleport>.
  • 12. Initialization Code: CreateApp is a new method that is introduced to initialize the app in Vue 3 compared to Vue 2. The result of this method is a fresh instance of a Vue app. Without compromising the functionality of the other instances, each instance can work independently. const app1 = createApp({}) const app2 = createApp({}) app1.directive('focus', { inserted: el => el.focus() }) app2.mixin({ /* ... */ }) Even though it is uncommon to develop many apps within one application, doing so could be useful if the project expands in scope. Compared to Vue 2, it is now possible to configure each app as a separate object with Vue 3. It is also feasible to combine various features from different instances.
  • 13. Summary of Vue 2 vs Vue 3 After comparing the significant new changes between Vue 2 and Vue 3, we can state that: โ— Compared to Vue 2, Vue 3 is rumored to be quicker, smaller, easier to maintain, and more natively targettable. โ— With some new and noteworthy updates and functionality, Vue 3 is essentially a rewrite of Vue 2. โ— Both Vue 2 and Vue 3 have very similar fundamental syntax. However, if you have any questions about developing a new web application with the VueJS framework or want to switch to Vue 3, don't hesitate to get in touch with us. Albiorix Technology is a leading Vue.js development company having a team of talented developers to provide the best optimum IT solutions
  • 14. Contact Us: (+91) 991-308-8360 / +1 (912) 528-5566 inquiry@albiorixtech.com live:albiorix.tech For More Information Visit Us At: www.albiorixtech.com THANK YOU