SlideShare une entreprise Scribd logo
1  sur  14
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

Contenu connexe

Tendances

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.jsHolly Schinsky
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJSKnoldus Inc.
 
Vue.js Getting Started
Vue.js Getting StartedVue.js Getting Started
Vue.js Getting StartedMurat Doğan
 
Introduction to VueJS & Vuex
Introduction to VueJS & VuexIntroduction to VueJS & Vuex
Introduction to VueJS & VuexBernd Alter
 
React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...
React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...
React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...Edureka!
 
React JS - A quick introduction tutorial
React JS - A quick introduction tutorialReact JS - A quick introduction tutorial
React JS - A quick introduction tutorialMohammed Fazuluddin
 
VueJS Introduction
VueJS IntroductionVueJS Introduction
VueJS IntroductionDavid Ličen
 
Deep dive into Vue.js
Deep dive into Vue.jsDeep dive into Vue.js
Deep dive into Vue.js선협 이
 
React state
React  stateReact  state
React stateDucat
 
ReactJS presentation
ReactJS presentationReactJS presentation
ReactJS presentationThanh Tuong
 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.jsPagepro
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners Varun Raj
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation洪 鹏发
 
React new features and intro to Hooks
React new features and intro to HooksReact new features and intro to Hooks
React new features and intro to HooksSoluto
 
Basics of Vue.js 2019
Basics of Vue.js 2019Basics of Vue.js 2019
Basics of Vue.js 2019Paul Bele
 

Tendances (20)

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
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
 
Vue.js Getting Started
Vue.js Getting StartedVue.js Getting Started
Vue.js Getting Started
 
Introduction to VueJS & Vuex
Introduction to VueJS & VuexIntroduction to VueJS & Vuex
Introduction to VueJS & Vuex
 
React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...
React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...
React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 
React JS - A quick introduction tutorial
React JS - A quick introduction tutorialReact JS - A quick introduction tutorial
React JS - A quick introduction tutorial
 
VueJS Introduction
VueJS IntroductionVueJS Introduction
VueJS Introduction
 
React js
React jsReact js
React js
 
Vue, vue router, vuex
Vue, vue router, vuexVue, vue router, vuex
Vue, vue router, vuex
 
Deep dive into Vue.js
Deep dive into Vue.jsDeep dive into Vue.js
Deep dive into Vue.js
 
React state
React  stateReact  state
React state
 
Basics of VueJS
Basics of VueJSBasics of VueJS
Basics of VueJS
 
ReactJS presentation
ReactJS presentationReactJS presentation
ReactJS presentation
 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.js
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
 
React new features and intro to Hooks
React new features and intro to HooksReact new features and intro to Hooks
React new features and intro to Hooks
 
Vuex
VuexVuex
Vuex
 
Basics of Vue.js 2019
Basics of Vue.js 2019Basics of Vue.js 2019
Basics of Vue.js 2019
 

Similaire à 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 applicationKaty Slemon
 
Introducing Windows Azure
Introducing Windows AzureIntroducing Windows Azure
Introducing Windows AzureIsmail Muhammad
 
Azure services platform
Azure services platformAzure services platform
Azure services platformjonsn
 
Azure services platform
Azure services platformAzure services platform
Azure services platformDhairyaVora49
 
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 Servicessusere19c741
 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-eehomeworkping3
 
What is Vuejs.pptx
What is Vuejs.pptxWhat is Vuejs.pptx
What is Vuejs.pptxNhnHVn2
 
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_.pptx75waytechnologies
 
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 ServiceANAND PRAKASH
 
Google app engine
Google app engineGoogle app engine
Google app engineSuraj Mehta
 
2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday2023 Ottobre Patch Tuesday
2023 Ottobre Patch TuesdayIvanti
 
2023 Ottobre Patch Tuesday
2023 Ottobre Patch Tuesday2023 Ottobre Patch Tuesday
2023 Ottobre Patch TuesdayShazia464689
 
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.pdfInexture 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 CompoWebxoanon
 

Similaire à 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
 

Plus de Albiorix Technology

JavaScript Frameworks Popularity
JavaScript Frameworks PopularityJavaScript Frameworks Popularity
JavaScript Frameworks PopularityAlbiorix 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 BusinessAlbiorix 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
 
Top 11 Mobile App Development Frameworks
Top 11 Mobile App Development FrameworksTop 11 Mobile App Development Frameworks
Top 11 Mobile App Development FrameworksAlbiorix 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 AngularAlbiorix Technology
 
9 Best JavaScript Frameworks To Choose
9 Best JavaScript Frameworks To Choose9 Best JavaScript Frameworks To Choose
9 Best JavaScript Frameworks To ChooseAlbiorix Technology
 
Top 7 JavaScript Data Grid Libraries
Top 7 JavaScript Data Grid LibrariesTop 7 JavaScript Data Grid Libraries
Top 7 JavaScript Data Grid LibrariesAlbiorix 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 DevelopersAlbiorix 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 BusinessAlbiorix 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 ToolAlbiorix 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 BusinessAlbiorix 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 ApplicationsAlbiorix Technology
 

Plus de 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
 

Dernier

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 

Dernier (20)

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 

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