SlideShare a Scribd company logo
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
Renaming the element or changing the html structure will break the code
Data Driven Approach is problematic
Source Vue.js taste of modern framework
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
Code complexity.
Source Vue.js taste of modern framework
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
Data-Driven Approach
One way to reduce complexity(eg. With Vue.js)
v-model = data-binding
v-if = conditional rendering
Source Vue.js taste of modern framework
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
$ npm install vue
$ bower install vue
or Just CDN
<script type=”text/javascript”
src=”https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.0/vue.js”>
<div id=”app”></div>
new Vue({
el: “#app”
})
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
Binding
<div id=”app”>
<h1>{{message}}</h1>
</div>
new Vue({
el: “#app”,
data: {
message: “Hello World”
}
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
Two Way Binding
<div id=”app”>
<h1>{{message}}</h1>
<input type=”text” v-model=”message”>
</div>
new Vue({
el: '#app',
data: {
message: 'Hello World'
}
})
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
Lists
<div id="app">
<ul>
<li v-for="address in addresses"> {{ address.district }} </li>
</ul>
</div>
new Vue({
el: '#app',
data: {
addresses: [
{ district: 'Gulmi' },
{ district: 'Arghakanchi' }
]
}
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
DOM events
<!-- full syntax -->
<a v-on:click="sayHi"></a>
<!-- shorthand -->
<a @click="sayHi"></a>
new Vue({
el: '#app',
methods: {
sayHi: function() {
alert(“Hi”);
}
}
})
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
Conditional Rendering
<p v-if=“visible”>I am visible</p>
<p v-else>I am hidden</p>
<p v-show=“visible”>I am visible</p>
http://jyaasa.comCopyright 2017. Jyaasa Technologies.
Demo
cd VueTuts/customer-mgmt
(npm run dev)
cd railsproject/customer-management-api
rails s
Thank You!
Any Queries? Lets Discuss
http://jyaasa.comCopyright 2017. Jyaasa Technologies.

More Related Content

PDF
2017-11-09 - Fitbit Norcal Developers Meetup (fred)
PDF
NYC WebPerf Meetup Feb 2020 - Measuring the Adoption of Web Performance Techn...
KEY
Compact Web - Remind "web compression" -
PDF
Vaadin & Web Components
PDF
How to Webpack your Django!
PDF
Intro to JavaScript
PPTX
Build Fast WordPress Site With Gatsby
PDF
Building Performance - ein Frontend-Build-Prozess für Java mit Maven
2017-11-09 - Fitbit Norcal Developers Meetup (fred)
NYC WebPerf Meetup Feb 2020 - Measuring the Adoption of Web Performance Techn...
Compact Web - Remind "web compression" -
Vaadin & Web Components
How to Webpack your Django!
Intro to JavaScript
Build Fast WordPress Site With Gatsby
Building Performance - ein Frontend-Build-Prozess für Java mit Maven

Similar to Vue.js (20)

PDF
Intro to Javascript
PPTX
Fronted development trends - past, present and the future
PDF
PDF
[cssdevconf] Adaptive Images in RWD
PDF
What Is React | ReactJS Tutorial for Beginners | ReactJS Training | Edureka
PDF
[refreshaustin] Adaptive Images in Responsive Web Design
PPTX
Vue presentation
PDF
Yes, AWS *is* a Fantastic Environment for .NET!
PDF
Front End Development for Back End Java Developers - Jfokus 2020
PDF
Polymer - El fin a tus problemas con el FrontEnd
PPTX
Web Front End Performance
PPTX
PAPI and Promotional Deployment
PDF
[html5tx] Adaptive Images in Responsive Web Design
PDF
Modern Static Site with GatsbyJS
PDF
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
PDF
Bringing the JAMstack to the Enterprise
PDF
[rwdsummit2012] Adaptive Images in Responsive Web Design
PDF
Streamlining Your Applications with Web Frameworks
PDF
[refreshpitt] Adaptive Images in Responsive Web Design
PDF
How Bitbucket Pipelines Loads Connect UI Assets Super-fast
Intro to Javascript
Fronted development trends - past, present and the future
[cssdevconf] Adaptive Images in RWD
What Is React | ReactJS Tutorial for Beginners | ReactJS Training | Edureka
[refreshaustin] Adaptive Images in Responsive Web Design
Vue presentation
Yes, AWS *is* a Fantastic Environment for .NET!
Front End Development for Back End Java Developers - Jfokus 2020
Polymer - El fin a tus problemas con el FrontEnd
Web Front End Performance
PAPI and Promotional Deployment
[html5tx] Adaptive Images in Responsive Web Design
Modern Static Site with GatsbyJS
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Bringing the JAMstack to the Enterprise
[rwdsummit2012] Adaptive Images in Responsive Web Design
Streamlining Your Applications with Web Frameworks
[refreshpitt] Adaptive Images in Responsive Web Design
How Bitbucket Pipelines Loads Connect UI Assets Super-fast
Ad

More from Jyaasa Technologies (20)

PPTX
Incident management with jira
PPTX
Extreme programming practices ( xp )
PPTX
The myth of 'real javascript developer'
PPTX
Microservices
PPTX
Facade pattern in rails
PPTX
Scrum ceromonies
PPTX
An introduction to bitcoin
PPTX
Tor network
PPTX
Collective ownership in agile teams
PPTX
Push notification
PPTX
The Design Thinking Process
PPTX
PPTX
Design sprint
PPTX
Data Flow Diagram
PPTX
OKRs and Actions Overview
PPTX
Active record in rails 5
PPTX
Design Patern::Adaptor pattern
PDF
Association in rails
PDF
Web design layout pattern
PDF
Command Pattern in Ruby
Incident management with jira
Extreme programming practices ( xp )
The myth of 'real javascript developer'
Microservices
Facade pattern in rails
Scrum ceromonies
An introduction to bitcoin
Tor network
Collective ownership in agile teams
Push notification
The Design Thinking Process
Design sprint
Data Flow Diagram
OKRs and Actions Overview
Active record in rails 5
Design Patern::Adaptor pattern
Association in rails
Web design layout pattern
Command Pattern in Ruby
Ad

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Approach and Philosophy of On baking technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Encapsulation theory and applications.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Network Security Unit 5.pdf for BCA BBA.
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Cloud computing and distributed systems.
PPTX
Spectroscopy.pptx food analysis technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Electronic commerce courselecture one. Pdf
cuic standard and advanced reporting.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Approach and Philosophy of On baking technology
Programs and apps: productivity, graphics, security and other tools
Encapsulation theory and applications.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
MYSQL Presentation for SQL database connectivity
20250228 LYD VKU AI Blended-Learning.pptx
Unlocking AI with Model Context Protocol (MCP)
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Network Security Unit 5.pdf for BCA BBA.
The AUB Centre for AI in Media Proposal.docx
Advanced methodologies resolving dimensionality complications for autism neur...
Cloud computing and distributed systems.
Spectroscopy.pptx food analysis technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Empathic Computing: Creating Shared Understanding
Electronic commerce courselecture one. Pdf

Vue.js