SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

VueJS Introduction
VueJS IntroductionVueJS Introduction
VueJS IntroductionDavid Ličen
 
Docker란 무엇인가? : Docker 기본 사용법
Docker란 무엇인가? : Docker 기본 사용법Docker란 무엇인가? : Docker 기본 사용법
Docker란 무엇인가? : Docker 기본 사용법pyrasis
 
왕초보를 위한 도커 사용법
왕초보를 위한 도커 사용법왕초보를 위한 도커 사용법
왕초보를 위한 도커 사용법GeunCheolYeom
 
How to implement internationalization (i18n) in angular application(multiple ...
How to implement internationalization (i18n) in angular application(multiple ...How to implement internationalization (i18n) in angular application(multiple ...
How to implement internationalization (i18n) in angular application(multiple ...Katy Slemon
 
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!pyrasis
 
introduction to Vue.js 3
introduction to Vue.js 3 introduction to Vue.js 3
introduction to Vue.js 3 ArezooKmn
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Previewvaluebound
 
NestJS - O framework progressivo
NestJS - O framework progressivoNestJS - O framework progressivo
NestJS - O framework progressivoWender Machado
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to dockerInstruqt
 
State manager in Vue.js, from zero to Vuex
State manager in Vue.js, from zero to VuexState manager in Vue.js, from zero to Vuex
State manager in Vue.js, from zero to VuexCommit University
 
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
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event HandlingWebStackAcademy
 

Was ist angesagt? (20)

VueJS Introduction
VueJS IntroductionVueJS Introduction
VueJS Introduction
 
Docker란 무엇인가? : Docker 기본 사용법
Docker란 무엇인가? : Docker 기본 사용법Docker란 무엇인가? : Docker 기본 사용법
Docker란 무엇인가? : Docker 기본 사용법
 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.js
 
왕초보를 위한 도커 사용법
왕초보를 위한 도커 사용법왕초보를 위한 도커 사용법
왕초보를 위한 도커 사용법
 
How to implement internationalization (i18n) in angular application(multiple ...
How to implement internationalization (i18n) in angular application(multiple ...How to implement internationalization (i18n) in angular application(multiple ...
How to implement internationalization (i18n) in angular application(multiple ...
 
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
 
NestJS
NestJSNestJS
NestJS
 
Vue.js for beginners
Vue.js for beginnersVue.js for beginners
Vue.js for beginners
 
Angular.pdf
Angular.pdfAngular.pdf
Angular.pdf
 
introduction to Vue.js 3
introduction to Vue.js 3 introduction to Vue.js 3
introduction to Vue.js 3
 
React js
React jsReact js
React js
 
Arquitetura Node com NestJS
Arquitetura Node com NestJSArquitetura Node com NestJS
Arquitetura Node com NestJS
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Preview
 
NestJS - O framework progressivo
NestJS - O framework progressivoNestJS - O framework progressivo
NestJS - O framework progressivo
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Angular
AngularAngular
Angular
 
State manager in Vue.js, from zero to Vuex
State manager in Vue.js, from zero to VuexState manager in Vue.js, from zero to Vuex
State manager in Vue.js, from zero to Vuex
 
Docker Basics
Docker BasicsDocker Basics
Docker Basics
 
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
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event Handling
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...chiefasafspells
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benonimasabamasaba
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 

Kürzlich hochgeladen (20)

%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 

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